determining the parameters for the kalman filter