interpolate

open override fun interpolate(currentMeasurement: M, timestamp: Long, result: M): Boolean

Interpolates provided current measurement. This implementation always returns true and returns as a result a copy of provide current measurement.

Return

true if interpolation has been computed and result instance contains expected value, false if result of interpolation must be discarded. This implementation always returns true.

Parameters

currentMeasurement

current measurement to be interpolated with previous ones.

timestamp

timestamp to perform interpolation respect previous measurements.

result

instance where result of interpolation will be stored. If will contain a copy of currentMeasurement.