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

AhrensDieterExponentialSampler
Link copied to clipboard
common
fun AhrensDieterExponentialSampler(mean: Double)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

sample
Link copied to clipboard
common
open override fun sample(generator: RandomGenerator): BlockingDoubleChain
Generates a chain of samples.

Properties

mean
Link copied to clipboard
common
val mean: Double

Sources

common source
Link copied to clipboard