RVUFunction

This represents a uni-variate function of a random variable.

Parameters

rv

the random variable in the function mapping

theTransform

the functional transformation using (first) to produce a double

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider

Constructors

Link copied to clipboard
constructor(rv: RVariableIfc, theTransform: (f: Double) -> Double = { f: Double -> f })

This represents a uni-variate function of a random variable. The function will have the same stream and same underlying provider as the supplied random variable

Functions

Link copied to clipboard
open override fun instance(streamNum: Int, rnStreamProvider: RNStreamProviderIfc): RVariableIfc