SamplerSpace

class SamplerSpace<T : Any, out S : Group<T>, ScaleOperations<T>>(algebra: S) : Group<Sampler<T>> , ScaleOperations<Sampler<T>>

A space of samplers. Allows performing simple operations on distributions.

Constructors

Link copied to clipboard
fun <out S : Group<T>, ScaleOperations<T>> SamplerSpace(algebra: S)

Functions

Link copied to clipboard
open override fun add(left: Sampler<T>, right: Sampler<T>): Sampler<T>
Link copied to clipboard
open fun binaryOperation(operation: String, left: Sampler<T>, right: Sampler<T>): Sampler<T>
Link copied to clipboard
open override fun binaryOperationFunction(operation: String): (left: Sampler<T>, right: Sampler<T>) -> Sampler<T>
Link copied to clipboard
open fun bindSymbol(value: String): Sampler<T>
Link copied to clipboard
open fun bindSymbolOrNull(value: String): Sampler<T>?
Link copied to clipboard
open operator fun Sampler<T>.div(k: Number): Sampler<T>
Link copied to clipboard
open fun export(arg: Sampler<T>): Sampler<T>
Link copied to clipboard
open operator fun Sampler<T>.minus(arg: Sampler<T>): Sampler<T>
Link copied to clipboard
open operator fun Sampler<T>.plus(arg: Sampler<T>): Sampler<T>
Link copied to clipboard
open override fun scale(a: Sampler<T>, value: Double): Sampler<T>
Link copied to clipboard
open operator fun Number.times(arg: Sampler<T>): Sampler<T>
open operator fun Sampler<T>.times(k: Number): Sampler<T>
Link copied to clipboard
open operator override fun Sampler<T>.unaryMinus(): Sampler<T>
Link copied to clipboard
open fun unaryOperation(operation: String, arg: Sampler<T>): Sampler<T>
Link copied to clipboard
open override fun unaryOperationFunction(operation: String): (arg: Sampler<T>) -> Sampler<T>
Link copied to clipboard
open operator fun Sampler<T>.unaryPlus(): Sampler<T>

Properties

Link copied to clipboard
val algebra: S

the space to provide addition and scalar multiplication for T.

Link copied to clipboard
open override val zero: Sampler<T>

Sources

Link copied to clipboard