Returns an accumulator function which incrementally computes a maximum absolute value.
accumulator function
var accumulator = incrmaxabs();
var v = accumulator();
// returns null
v = accumulator( 2.0 );
// returns 2.0
v = accumulator( -3.0 );
// returns 3.0
v = accumulator( 1.0 );
// returns 3.0
v = accumulator();
// returns 3.0
If provided a value, returns an updated maximum absolute value; otherwise, returns the current maximum absolute value.
Notes
NaN
or a value which, when used in computations, results inNaN
, the accumulated value isNaN
for all future invocations.value
maximum absolute value