TruncatedRV

constructor(distribution: InvertibleCDFIfc, distDomain: Interval, truncInterval: Interval)
constructor(distribution: ContinuousDistributionIfc, truncInterval: Interval)


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

cdfLL

The lower limit of the range of support of the distribution

cdfUL

The upper limit of the range of support of the distribution

truncLL

The truncated lower limit (if moved in from cdfLL), must be >= cdfLL

truncUL

The truncated upper limit (if moved in from cdfUL), must be <= cdfUL

streamNum

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

cdfLL

The lower limit of the range of support of the distribution

cdfUL

The upper limit of the range of support of the distribution

lowerLimit

The truncated lower limit (if moved in from cdfLL), must be >= cdfLL

upperLimit

The truncated upper limit (if moved in from cdfUL), must be <= cdfUL

stream

the random number stream