ConstantSampler

class ConstantSampler<out T : Any>(value: T) : Sampler<T>

Implements Sampler by sampling only certain value.

Constructors

Link copied to clipboard
fun <out T : Any> ConstantSampler(value: T)

Functions

Link copied to clipboard
open override fun sample(generator: RandomGenerator): Chain<T>

Generates a chain of samples.

Properties

Link copied to clipboard
val value: T

the value to sample.

Sources

Link copied to clipboard