SamplerSpace

class SamplerSpace<T : Any>(space: Space<T>) : Space<Sampler<T>>

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

Constructors

SamplerSpace
Link copied to clipboard
common
fun <T : Any> SamplerSpace(space: Space<T>)

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>
div
Link copied to clipboard
common
open operator fun Sampler<T>.div(k: Number): Sampler<T>
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
minus
Link copied to clipboard
common
open operator fun Sampler<T>.minus(b: Sampler<T>): Sampler<T>
multiply
Link copied to clipboard
common
open override fun multiply(a: Sampler<T>, k: Number): Sampler<T>
plus
Link copied to clipboard
common
open operator fun Sampler<T>.plus(b: Sampler<T>): 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>
toString
Link copied to clipboard
common
open fun toString(): String
unaryMinus
Link copied to clipboard
common
open operator 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

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