Sampler

interface Sampler<T : Any>

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
sample
Link copied to clipboard
common
abstract fun sample(generator: RandomGenerator): Chain<T>
toString
Link copied to clipboard
common
open fun toString(): String

Inheritors

Distribution
Link copied to clipboard
BasicSampler
Link copied to clipboard
ConstantSampler
Link copied to clipboard

Extensions

sampleBuffer
Link copied to clipboard
common
fun <T : Any> Sampler<T>.sampleBuffer(generator: RandomGenerator, size: Int, bufferFactory: BufferFactory<T> = Buffer.Companion::boxing): Chain<Buffer<T>>
Sample a bunch of values
fun Sampler<Double>.sampleBuffer(generator: RandomGenerator, size: Int): Chain<Buffer<Double>>
Generate a bunch of samples from real distributions