Package space.kscience.kmath.stat
Types
BasicSampler
Link copied to clipboard
class BasicSampler<T : Any>(chainBuilder: (RandomGenerator) -> Chain<T>) : Sampler<T>
Content copied to clipboard
BlockingStatistic
Link copied to clipboard
ComposableStatistic
Link copied to clipboard
ConstantSampler
Link copied to clipboard
DefaultGenerator
Link copied to clipboard
MCScope
Link copied to clipboard
class MCScope(coroutineContext: CoroutineContext, random: RandomGenerator)
Content copied to clipboard
Median
Link copied to clipboard
RandomChain
Link copied to clipboard
class RandomChain<out R>(generator: RandomGenerator, gen: suspend RandomGenerator.() -> R) : Chain<R>
Content copied to clipboard
RandomGenerator
Link copied to clipboard
interface RandomGenerator
Content copied to clipboard
RandomGeneratorProvider
Link copied to clipboard
class RandomGeneratorProvider(generator: RandomGenerator) : UniformRandomProvider
Content copied to clipboard
RandomSourceGenerator
Link copied to clipboard
SamplerSpace
Link copied to clipboard
class SamplerSpace<T : Any, S : Group<T>, ScaleOperations<T>>(algebra: S) : Group<Sampler<T>> , ScaleOperations<Sampler<T>>
Content copied to clipboard
UniformDistribution
Link copied to clipboard
class UniformDistribution(range: ClosedFloatingPointRange<Double>) : UnivariateDistribution<Double>
Content copied to clipboard
UniformDoubleChain
Link copied to clipboard
class UniformDoubleChain(generator: RandomGenerator) : BlockingDoubleChain
Content copied to clipboard
Functions
asUniformRandomProvider
Link copied to clipboard
Represent this RandomGenerator as commons-rng UniformRandomProvider preserving and mirroring its current state.
chain
Link copied to clipboard
fun <R> RandomGenerator.chain(generator: suspend RandomGenerator.() -> R): RandomChain<R>
Content copied to clipboard
Create a generic random chain with provided generator
fromSource
Link copied to clipboard
fun RandomGenerator.Companion.fromSource(source: RandomSource, seed: Long? = null): RandomSourceGenerator
Content copied to clipboard
launch
Link copied to clipboard
inline fun MCScope.launch(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend MCScope.() -> Unit): Job
Content copied to clipboard
Specialized launch for MCScope.
mcScope
Link copied to clipboard
mersenneTwister
Link copied to clipboard
fun RandomGenerator.Companion.mersenneTwister(seed: Long? = null): RandomSourceGenerator
Content copied to clipboard
sampleBuffer
Link copied to clipboard
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.
fun <T : Any> Sampler<T>.sampleBuffer(generator: RandomGenerator, size: Int, bufferFactory: BufferFactory<T> = Buffer.Companion::boxing): Chain<Buffer<T>>
Content copied to clipboard
uniform
Link copied to clipboard
fun Distribution.Companion.uniform(range: ClosedFloatingPointRange<Double>): UniformDistribution
Content copied to clipboard