Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for the cumulative distribution function (CDF) of an arcsine distribution.

Hierarchy

  • CDF

Callable

  • __call(x: number, a: number, b: number): number
  • Evaluates the cumulative distribution function (CDF) for an arcsine distribution with minimum support a and maximum support b at a value x.

    Notes

    • If provided a >= b, the function returns NaN.

    Parameters

    • x: number

      input value

    • a: number

      minimum support

    • b: number

      maximum support

    Returns number

    evaluated CDF

    Example

    var y = cdf( 9.0, 0.0, 10.0 );
    // returns ~0.795

    Example

    var y = cdf( 0.5, 0.0, 2.0 );
    // returns ~0.333

    Example

    var y = cdf( +Infinity, 2.0, 4.0 );
    // returns 1.0

    Example

    var y = cdf( -Infinity, 2.0, 4.0 );
    // returns 0.0

    Example

    var y = cdf( NaN, 0.0, 1.0 );
    // returns NaN

    Example

    var y = cdf( 0.0, NaN, 1.0 );
    // returns NaN

    Example

    var y = cdf( 0.0, 0.0, NaN );
    // returns NaN

    Example

    var y = cdf( 2.0, 1.0, 0.0 );
    // returns NaN

Index

Methods

Methods

factory

  • factory(a: number, b: number): Unary
  • Returns a function for evaluating the cumulative distribution function (CDF) for an arcsine distribution with minimum support a and maximum support b.

    Parameters

    • a: number

      minimum support

    • b: number

      maximum support

    Returns Unary

    CDF

    Example

    var mycdf = cdf.factory( 0.0, 10.0 );
    var y = mycdf( 0.5 );
    // returns ~0.144
    
    y = mycdf( 8.0 );
    // returns ~0.705