repl.txt (797B)
1 2 {{alias}}() 3 Returns an accumulator function which incrementally computes the mean 4 percentage error (MPE). 5 6 If provided input values, the accumulator function returns an updated mean 7 percentage error. If not provided input values, the accumulator function 8 returns the current mean percentage 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 ~33.33 25 > m = accumulator( 5.0, 2.0 ) 26 ~-58.33 27 > m = accumulator() 28 ~-58.33 29 30 See Also 31 -------- 32