WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

randomBates

  • randomBates(n: number): function
  • Returns a function for generating random numbers with a Bates distribution with n independent variables.

    Parameters

    • n: number

      Number of independent random variables to use.

    Returns function

      • (): number
      • Returns number

randomExponential

  • randomExponential(lambda: number): function
  • Returns a function for generating random numbers with an exponential distribution with the rate lambda; equivalent to time between events in a Poisson process with a mean of 1 / lambda.

    Parameters

    • lambda: number

      Expected time between events.

    Returns function

      • (): number
      • Returns number

randomIrwinHall

  • randomIrwinHall(n: number): function
  • Returns a function for generating random numbers with an Irwin–Hall distribution with n independent variables.

    Parameters

    • n: number

      Number of independent random variables to use.

    Returns function

      • (): number
      • Returns number

randomLogNormal

  • randomLogNormal(mu?: number, sigma?: number): function
  • Returns a function for generating random numbers with a log-normal distribution. The expected value of the random variable’s natural logrithm is mu, with the given standard deviation sigma. If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1.

    Parameters

    • Optional mu: number

      Expected value, defaults to 0.

    • Optional sigma: number

      Standard deviation, defaults to 1.

    Returns function

      • (): number
      • Returns number

randomNormal

  • randomNormal(mu?: number, sigma?: number): function
  • Returns a function for generating random numbers with a normal (Gaussian) distribution. The expected value of the generated numbers is mu, with the given standard deviation sigma. If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1.

    Parameters

    • Optional mu: number

      Expected value, defaults to 0.

    • Optional sigma: number

      Standard deviation, defaults to 1.

    Returns function

      • (): number
      • Returns number

randomUniform

  • randomUniform(min?: number, max?: number): function
  • Returns a function for generating random numbers with a uniform distribution). The minimum allowed value of a returned number is min, and the maximum is max. If min is not specified, it defaults to 0; if max is not specified, it defaults to 1.

    Parameters

    • Optional min: number

      The minimum allowed value of a returned number, defaults to 0.

    • Optional max: number

      The maximum allowed value of a returned number, defaults to 1.

    Returns function

      • (): number
      • Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc