IrregularMovingAverage.predicted_value

Calculates the predicted future value of the moving average

struct IrregularMovingAverage(Time = time_t, Value = real)
Value
predicted_value
(
Time t
)
out (estimate) { assert (!isNaN(estimate)); assert (!isInfinity(estimate)); }

Parameters

t Time

time for which to calculate the predicted value; must be greater than or equal to the update time of the average (if not provided, current time will be used)

Return Value

Type: Value

the predicted value of the averaged quantity at time t

Throws

exception if t is less than the update time of the average

Meta