calculate

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

Calculate a new Kalman filter estimate.

Return

Kalman gain compensated output

Parameters

model

the current reading from the model system

sensor

the current reading from the sensor