Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/base/dists/weibull/entropy/docs/types/index.d"

Index

Functions

Functions

entropy

  • entropy(k: number, lambda: number): number
  • Returns the differential entropy of a Weibull distribution.

    Notes

    • If k <= 0 or lambda <= 0, the function returns NaN.

    Parameters

    • k: number

      shape parameter

    • lambda: number

      scale parameter

    Returns number

    entropy

    Example

    var v = entropy( 1.0, 1.0 );
    // returns 1.0

    Example

    var v = entropy( 4.0, 12.0 );
    // returns ~2.532

    Example

    var v = entropy( 8.0, 2.0 );
    // returns ~0.119

    Example

    var v = entropy( 1.0, -0.1 );
    // returns NaN

    Example

    var v = entropy( -0.1, 1.0 );
    // returns NaN

    Example

    var v = entropy( 2.0, NaN );
    // returns NaN

    Example

    var v = entropy( NaN, 2.0 );
    // returns NaN