SamplerSpace

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

A space of samplers. Allows to perform simple operations on distributions.

Constructors

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

Functions

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

Properties

algebra
Link copied to clipboard
common
val algebra: S
the space to provide addition and scalar multiplication for T.
zero
Link copied to clipboard
common
open override val zero: Sampler<T>