Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/incr/mgrubbs/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 incrmgrubbs

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

    throws

    first argument must be a positive integer

    throws

    first argument must be greater than or equal to 3

    throws

    must provide valid options

    throws

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

    Parameters

    • W: number

      window size

    • Optional options: Options

      function options

    Returns accumulator

    accumulator function

    Example

    var rnorm = require( `@stdlib/random/base/normal` );
    
    var accumulator;
    var opts;
    var i;
    
    accumulator = incrmgrubbs( 20, opts );
    
    for ( i = 0; i < 200; i++ ) {
        res = accumulator( rnorm( 10.0, 5.0 ) );
    }