Skip to content

Files

Latest commit

a4155e1 · Oct 29, 2018

History

History

java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 29, 2018
Oct 29, 2018

README.md

Java Adaptation of KalmanFilter

Authors:

  • Sifan Ye (initial version)
  • Andreas Eppler (Oct 18 update)

Example Usage

    KalmanFilter test = new KalmanFilter(0.008, 0.1);       
    double[] testData = {66,64,63,63,63,66,65,67,58};
    for(double x: testData){
        System.out.println("Input data: " + x);
        System.out.println("Filtered data: " + test.filter(x));
    }'

Example Usage with controlled input

    KalmanFilter test = new KalmanFilter(0.008, 0.1, 1, 1, 1);       
    double[] testData = {66,64,63,63,63,66,65,67,58};
	double u = 0.2;
    for(double x: testData){
        System.out.println("Input data: " + x);
        System.out.println("Filtered data: " + test.filter(x, u));
    }'