IrregularMovingAverage.beta

Set the discount coefficient for this moving average. It may be useful to adjust this value if, for example, the average waiting time between data points turns out to be very different from initial expectations.

  1. Value beta()
  2. Value beta(Value b)
    struct IrregularMovingAverage(Time = time_t, Value = real)
    Value
    beta
    (
    Value b
    )

Parameters

b Value

new value to set for the discount coefficient beta; must have 0 < b < 1.

Return Value

Type: Value

newly-set discount coefficient beta for this moving average (i.e. b).

Meta