ExponentialDistribution<T>

Models & Types · AiDotNet.Distributions

Represents an Exponential probability distribution.

Inheritance: DistributionBase<T> → ExponentialDistribution<T>

For Beginners

The Exponential distribution models “waiting times” - how long until something happens. For example: time until the next customer arrives, time until a light bulb fails, or time until the next earthquake. It has a “memoryless” property - the probability of waiting another 5 minutes is the same whether you’ve waited 1 minute or 1 hour already.

How It Works

The Exponential distribution describes the time between events in a Poisson point process, where events occur continuously and independently at a constant average rate. It’s the continuous analog of the geometric distribution.

PDF: f(x) = λ * exp(-λx) for x ≥ 0

Constructors

Constructor Summary
ExponentialDistribution() Initializes a standard Exponential distribution (rate=1).
ExponentialDistribution(T rate) Initializes a new Exponential distribution with specified rate.

Properties

Property Summary
T Mean { get; }
T Rate { get; } Gets the rate parameter (λ).
T Scale { get; } Gets the scale parameter (1/λ), also called the mean.
T Variance { get; }
Vector<T> Parameters { get; set; }
int NumParameters { get; }
string[] ParameterNames { get; }

Methods

Method Summary
ExponentialDistribution<T> FromMean(T mean) Creates an Exponential distribution from the mean.
IParametricDistribution<T> Clone()
Matrix<T> FisherInformation()
T Cdf(T x)
T InverseCdf(T p)
T LogPdf(T x)
T Pdf(T x)
T Sample(Random random)
Vector<T> GradLogPdf(T x)