BasicSampler

class BasicSampler<out T : Any>(chainBuilder: (RandomGenerator) -> Chain<T>) : Sampler<T>

Implements Sampler by delegating sampling to value of chainBuilder.

Constructors

BasicSampler
Link copied to clipboard
common
fun <out T : Any> BasicSampler(chainBuilder: (RandomGenerator) -> Chain<T>)

Functions

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

Properties

chainBuilder
Link copied to clipboard
common
val chainBuilder: (RandomGenerator) -> Chain<T>
the provider of Chain.

Sources

common source
Link copied to clipboard