AhrensDieterExponentialSampler

class AhrensDieterExponentialSampler(mean: Double) : Sampler<Double>

Sampling from an exponential distribution.

Based on Commons RNG implementation. See https://commons.apache.org/proper/commons-rng/commons-rng-sampling/apidocs/org/apache/commons/rng/sampling/distribution/AhrensDieterExponentialSampler.html.

Constructors

Link copied to clipboard
fun AhrensDieterExponentialSampler(mean: Double)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun sample(generator: RandomGenerator): BlockingDoubleChain

Generates a chain of samples.

Properties

Link copied to clipboard
val mean: Double

Sources

Link copied to clipboard