Shifted RV
class ShiftedRV @JvmOverloads constructor(val shift: Double, rv: RVariableIfc, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null) : RVariable(source)
Shifts the generated value of the supplied random variable by the shift amount. The shift amount must be positive.
Parameters
shift
a non-negative value
rv
the random variable to shift
stream Num
the random number stream number, defaults to 0, which means the next stream
stream Provider
the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider
name
an optional name
Constructors
Link copied to clipboard
constructor(shift: Double, rv: RVariableIfc, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)