Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/kstest/docs/types/index.d"

Index

Interfaces

Functions

Functions

Export assignment kstest

  • Computes a Kolmogorov-Smirnov goodness-of-fit test.

    throws

    must provide valid options

    Parameters

    • x: NumericArray

      input array holding numeric values

    • y: Function | string

      either a CDF function or a string denoting the name of a distribution

    • Rest ...params: Array<number | Options>

      distribution parameters passed to reference CDF followed by an optional options object

    Returns Results

    test result object

    Example

    var out = kstest( [ 2.0, 1.0, 5.0, -5.0, 3.0, 0.5, 6.0 ], 'normal', 0.0, 1.0 );
    // returns { 'pValue': ~0.015, 'statistic': ~0.556, ... }