ConstantSampler

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

Implements Sampler by sampling only certain value.

Constructors

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

Functions

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

Properties

value
Link copied to clipboard
common
val value: T
the value to sample.