final double[] state = filter.getStateEstimation();
kalmanX.add(state[0]);
kalmanY.add(state[2]);
// update the kalman filter with the measurements
filter.predict(controlVector);
filter.correct(new double[] { mx, 0, my, 0 } );
}
chart.setXAxisTitle("Distance (m)");
chart.setYAxisTitle("Height (m)");