Generates an updated moving average with a new data point, using the
specified discount coefficient. The new moving average is returned
as a new struct instance, rather than mutating the internal struct
data.
structIrregularMovingAverage(Time = time_t, Value = real)
Generates an updated moving average with a new data point, using the specified discount coefficient. The new moving average is returned as a new struct instance, rather than mutating the internal struct data.