BasicSampler

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

Implements Sampler by delegating sampling to value of chainBuilder.

Constructors

Link copied to clipboard
fun <out T : Any> BasicSampler(chainBuilder: (RandomGenerator) -> Chain<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 chainBuilder: (RandomGenerator) -> Chain<T>

the provider of Chain.

Sources

Link copied to clipboard