Class Gaussian

Models the Normal (or Gaussian) distribution.

Hierarchy

  • Gaussian

Constructors

  • Parameters

    • mean: number
    • variance: number

    Returns Gaussian

Properties

mean: number
standardDeviation: number
variance: number

Methods

  • Addition of this and d

    Parameters

    Returns Gaussian

    the result of adding this and the given distribution's means and variances

  • cumulative distribution function, which describes the probability of a random variable falling in the interval (−∞, x]

    Parameters

    • x: number

    Returns number

  • Quotient distribution of this and d (scale for constant)

    Parameters

    Returns Gaussian

    the quotient distribution of this and the given distribution; equivalent to scale(1/d) when d is a constant

  • Parameters

    • precision: number
    • precisionmean: number

    Returns Gaussian

  • Product distribution of this and d (scale for constant)

    Parameters

    Returns Gaussian

    the product distribution of this and the given distribution; equivalent to scale(d) when d is a constant

  • probability density function, which describes the probability of a random variable taking on the value x

    Parameters

    • x: number

    Returns number

  • percent point function, the inverse of cdf

    Parameters

    • x: number

    Returns number

  • Scale this by constant c

    Parameters

    • c: number

    Returns Gaussian

    the result of scaling this distribution by the given constant

  • Subtraction of this and d

    Parameters

    Returns Gaussian

    the result of subtracting this and the given distribution's means and variances