Returns an accumulator function which incrementally performs Grubbs' test for detecting outliers.
function options
accumulator function
var rnorm = require( `@stdlib/random/base/normal` );
var accumulator;
var opts;
var res;
var i;
opts = {
'init': 100
};
accumulator = incrgrubbs( opts );
for ( i = 0; i < 200; i++ ) {
res = accumulator( rnorm( 10.0, 5.0 ) );
}
If provided a value, the accumulator function returns updated Grubbs' test results. If not provided a value, the accumulator function returns the current Grubbs' test results.
new value
test results or null