This is the most basic implementation of a Kalman filter.
For measured position, velocity and acceleration, the Kalman filter estimates the true datas.
This example works with Scilab....
This function is used to generate duobinary encoder and decoder output with example input and output are pasted below the function. You can test those inputs and verify your result....