-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathrepl.txt
More file actions
31 lines (26 loc) · 744 Bytes
/
repl.txt
File metadata and controls
31 lines (26 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{alias}}()
Returns an accumulator function which incrementally computes the residual
sum of squares (RSS), ignoring `NaN` values.
If provided input values, the accumulator function returns an updated
residual sum of squares. If not provided input values, the accumulator
function returns the current residual sum of squares.
NaN input values are ignored.
Returns
-------
acc: Function
Accumulator function.
Examples
--------
> var accumulator = {{alias}}();
> var r = accumulator()
null
> r = accumulator( 2.0, 3.0 )
1.0
> r = accumulator( NaN, 3.0 )
1.0
> r = accumulator( -5.0, 2.0 )
50.0
> r = accumulator()
50.0
See Also
--------