calculate

open fun calculate(absModel: Double, sensor: Double): Double

Calculate a new Kalman filter estimate.

Return

Kalman gain compensated output

Parameters

absModel

the current absolute reading from the model system, will internally take a delta step of this model

sensor

the current reading from the sensor