Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/incr/grubbs/docs/types/index.d"

Index

Interfaces

Type aliases

Functions

Type aliases

accumulator

accumulator: (x?: undefined | number) => Results | null

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.

param

new value

returns

test results or null

Type declaration

    • (x?: undefined | number): Results | null
    • Parameters

      • Optional x: undefined | number

      Returns Results | null

Functions

Export assignment incrgrubbs

  • Returns an accumulator function which incrementally performs Grubbs' test for detecting outliers.

    throws

    must provide valid options

    throws

    alpha option must be on the interval [0,1]

    Parameters

    • Optional options: Options

      function options

    Returns accumulator

    accumulator function

    Example

    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 ) );
    }