BasicSampler
class BasicSampler<out T : Any>(val chainBuilder: (RandomGenerator) -> Chain<T>) : Sampler<T> (source)
Implements Sampler by delegating sampling to value of chainBuilder.
Functions
Link copied to clipboard
Link copied to clipboard
Generates a chain of samples.
Link copied to clipboard
Generates size real samples and chunks them into some buffers.
Generates size integer samples and chunks them into some buffers.
fun <T : Any> Sampler<T>.sampleBuffer(generator: RandomGenerator, size: Int, bufferFactory: BufferFactory<T> = BufferFactory.boxing()): Chain<Buffer<T>>
Sample a bunch of values
Properties
Link copied to clipboard
the provider of Chain.