sampleBuffer
fun <T : Any> Sampler<T>.sampleBuffer(generator: RandomGenerator, size: Int, bufferFactory: BufferFactory<T> = Buffer.Companion::boxing): Chain<Buffer<T>>
Content copied to clipboard
Sample a bunch of values
fun Sampler<Double>.sampleBuffer(generator: RandomGenerator, size: Int): Chain<Buffer<Double>>
Content copied to clipboard
Generates size real samples and chunks them into some buffers.
fun Sampler<Int>.sampleBuffer(generator: RandomGenerator, size: Int): Chain<Buffer<Int>>
Content copied to clipboard
Generates size integer samples and chunks them into some buffers.