repl.txt (1034B)
1 2 {{alias}}() 3 Returns an accumulator function which incrementally computes the mean 4 arctangent absolute percentage error (MAAPE). 5 6 If provided input values, the accumulator function returns an updated mean 7 arctangent absolute percentage error. If not provided input values, the 8 accumulator function returns the current mean arctangent absolute percentage 9 error. 10 11 Note that, unlike the mean absolute percentage error (MAPE), the mean 12 arctangent absolute percentage error is expressed in radians on the interval 13 [0,π/2]. 14 15 If provided `NaN` or a value which, when used in computations, results in 16 `NaN`, the accumulated value is `NaN` for all future invocations. 17 18 Returns 19 ------- 20 acc: Function 21 Accumulator function. 22 23 Examples 24 -------- 25 > var accumulator = {{alias}}(); 26 > var m = accumulator() 27 null 28 > m = accumulator( 2.0, 3.0 ) 29 ~0.3218 30 > m = accumulator( 5.0, 2.0 ) 31 ~0.6523 32 > m = accumulator() 33 ~0.6523 34 35 See Also 36 -------- 37