Averages/Simple moving average: Difference between revisions

m
added whitespace before the TOC (table of contents), added a ;See also: (bold) header.
m (added whitespace before the TOC (table of contents), added a ;See also: (bold) header.)
Line 4:
The task is to:
:''Create a [[wp:Stateful|stateful]] function/class/instance that takes a period and returns a routine that takes a number as argument and returns a simple moving average of its arguments so far.''
 
 
'''Description'''<br>
Line 12 ⟶ 13:
* The period, P
* An ordered container of at least the last P numbers from each of its individual calls.
 
<br>
Stateful also means that successive calls to I(), the initializer, should return separate routines that do ''not'' share saved state so they could be used on two independent streams of data.
 
Line 33 ⟶ 36:
 
 
;See also: [[Standard Deviation]]
* [[Standard Deviation]]
<br><br>
 
=={{header|360 Assembly}}==