repl.txt (781B)
1 2 {{alias}}() 3 Returns an accumulator function which incrementally computes the mean 4 absolute error (MAE). 5 6 If provided input values, the accumulator function returns an updated mean 7 absolute error. If not provided input values, the accumulator function 8 returns the current mean absolute error. 9 10 If provided `NaN` or a value which, when used in computations, results in 11 `NaN`, the accumulated value is `NaN` for all future invocations. 12 13 Returns 14 ------- 15 acc: Function 16 Accumulator function. 17 18 Examples 19 -------- 20 > var accumulator = {{alias}}(); 21 > var m = accumulator() 22 null 23 > m = accumulator( 2.0, 3.0 ) 24 1.0 25 > m = accumulator( -5.0, 2.0 ) 26 4.0 27 > m = accumulator() 28 4.0 29 30 See Also 31 -------- 32