Kalman

constructor(R: Double, Q: Double)

Construct a new 1D Kalman filter. K gain is calculated at construction.

Parameters

R

higher values of R put more trust in the model

Q

higher values of Q trusts the sensor more