The number of results will be period-1 less than the number of processed inputs and no outputs will be produced if there were less than period input values.
Also see the {@link @thi.ng/transducers-stats# | @thi.ng/transducers-stats} package for more optimized and alternative MA strategies.
Computes the Simple Moving Average of given period.
The number of results will be
period-1
less than the number of processed inputs and no outputs will be produced if there were less thanperiod
input values.Also see the {@link @thi.ng/transducers-stats# | @thi.ng/transducers-stats} package for more optimized and alternative MA strategies.