RVFunction

This represents a bi-variate functional.

Parameters

theFirst

the first random variable in the function mapping

theSecond

the second random variable in the function mapping

theTransform

the functional transformation using (first, second) 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(theFirst: RVariableIfc, theSecond: RVariableIfc, theTransform: (f: Double, s: Double) -> Double = { f: Double, s: Double -> f + s })

This represents a bi-variate functional. The stream number and provider are determined by the first random variable.

constructor(theFirst: ConstantRV, theSecond: RVariableIfc, theTransform: (f: Double, s: Double) -> Double = { f: Double, s: Double -> f + s })

This represents a bi-variate functional. The stream number and provider are determined by the non-constant random variable.

Functions

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