Density of the exponential distribution. Equivalent to R's dexp(x, rate = 1, log = FALSE).
dexp(x, rate = 1, log = FALSE)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
rate (see ExponentialParams) and log (see DensityOptions).
rate
log
The density (or log density).
dexp(1); // 0.36787944117144233dexp(1, { rate: 2 }); // 0.2706705664732254 Copy
dexp(1); // 0.36787944117144233dexp(1, { rate: 2 }); // 0.2706705664732254
Density of the exponential distribution. Equivalent to R's
dexp(x, rate = 1, log = FALSE).