You can predicting your future data value and making sensor fusion by using kalman filter. So kalman filter used in robotics, engineering, a.i. developing,marketing ... .
Normal kalman filter using in lineer project. And you can't get efficient result for nonlineer project. Extended kalman filters solved this problems. First you need the state model for your system to using EKF(Extended Kalman Filter). For this project our state variables are
and equation are
w is a sensor noises.So our input matrix A is
and our state math model
Q is sensor noise matrix . In this project this is used 0.001 for every w. For now this math model is nonlineer so we need the linnerization before using kalman filter. At this point we using Jacobian matrices and Taylor series. Using Taylor series for input matrix A
and using Jacobian matrix at output matrix.
So we use the kalman filter now.
Kalman filter math model is