Truncated RV
constructor(distribution: InvertibleCDFIfc, cdfLL: Double, cdfUL: Double, truncLL: Double, truncUL: Double, streamNum: Int)
Constructs a truncated random variable based on the provided distribution
Parameters
distribution
the distribution to truncate, must not be null
cdf LL
The lower limit of the range of support of the distribution
cdf UL
The upper limit of the range of support of the distribution
trunc LL
The truncated lower limit (if moved in from cdfLL), must be >= cdfLL
trunc UL
The truncated upper limit (if moved in from cdfUL), must be <= cdfUL
stream Num
A positive integer to identify the stream
constructor(distribution: InvertibleCDFIfc, cdfLL: Double, cdfUL: Double, lowerLimit: Double, upperLimit: Double, stream: RNStreamIfc = KSLRandom.nextRNStream())
Parameters
distribution
the distribution to truncate, must not be null
cdf LL
The lower limit of the range of support of the distribution
cdf UL
The upper limit of the range of support of the distribution
lower Limit
The truncated lower limit (if moved in from cdfLL), must be >= cdfLL
upper Limit
The truncated upper limit (if moved in from cdfUL), must be <= cdfUL
stream
the random number stream