expon_dist
Exponential-distribution PDF or CDF.
Syntax
Section titled “Syntax”v = expon_dist(x, lambda, cumulative)Description
Section titled “Description”Returns the exponential distribution PDF (lambda * exp(-lambda * x)) or CDF (1 - exp(-lambda * x)) at x. lambda is the rate parameter.
Example
Section titled “Example”expon_dist(2, 1, true) % ≈ 0.865See also
Section titled “See also”poisson_dist— Poisson-distribution PMF or CDF.weibull_dist— Weibull-distribution PDF or CDF.