IrregularMovingAverage.opCall

"Constructor"-style static opCall

struct IrregularMovingAverage(Time = time_t, Value = real)
static
This
opCall
out (ima) { assert (&ima); }

Parameters

beta Value

discount coefficient that determines how much contribution new values make to the average (must have 0 < beta < 1)

expected_time_interval Time

expected average time interval between successive data points (must be > 0)

first_value Value

initial value of the quantity being averaged

first_value_time Time

observation time of the value provided

Return Value

Type: This

IrregularMovingAverage instance based on the single provided data point

Meta