Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

entropy

  • entropy(x0: number, gamma: number): number
  • Returns the differential entropy of a Cauchy distribution.

    Notes

    • If provided gamma <= 0, the function returns NaN.

    Parameters

    • x0: number

      location parameter

    • gamma: number

      scale parameter

    Returns number

    entropy

    Example

    var v = entropy( 10.0, 5.0 );
    // returns ~4.14

    Example

    var v = entropy( 7.0, 0.1 );
    // returns ~0.228

    Example

    var v = entropy( 10.0, -0.5 );
    // returns NaN