Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Exponential

Represents a random variable with an exponential distribution with a given mean value.

The mean value is the inverse of the distribution's rate. For example, an Exponential distribution with mean of 2 hours, can be used to model a process with 0.5 arrivals per hour.

For more information on exponential distributions see exponential distribution.

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new Exponential(mean: number, seed?: number): Exponential
  • Initializes a new instance of the Exponential class.

    Parameters

    • mean: number

      Mean generated value.

    • Optional seed: number

      Optional value used to initialize the random sequence.

    Returns Exponential

Accessors

mean

  • get mean(): number
  • Gets the mean generated value.

    Returns number

Methods

sample

  • sample(): number
  • Gets a random value that follows an exponential distribution with a given mean.

    Returns number

Generated using TypeDoc