Truncated Distribution
class TruncatedDistribution(theDistribution: DistributionIfc, theCDFLowerLimit: Double, theCDFUpperLimit: Double, theLowerLimit: Double, theUpperLimit: Double, name: String? = null) : Distribution, GetRVariableIfc(source)
Constructs a truncated distribution based on the provided distribution
Parameters
the Distribution
the distribution to truncate, must not be null
the CDFLower Limit
The lower limit of the range of support of the distribution
the CDFUpper Limit
The upper limit of the range of support of the distribution
the Lower Limit
The truncated lower limit (if moved in from cdfLL), must be >= cdfLL
the Upper Limit
The truncated upper limit (if moved in from cdfUL), must be <= cdfUL
name
an optional name/label
Constructors
Link copied to clipboard
constructor(theDistribution: DistributionIfc, distDomain: Interval, truncInterval: Interval, name: String? = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Get the parameters for the truncated distribution
Sets the parameters of the truncated distribution cdfLL = parameter0 cdfUL = parameters1 truncLL = parameters2 truncUL = parameters3
Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): TruncatedRV
Promises to return a random variable that uses the supplied stream number using the supplied stream provider
Link copied to clipboard
fun setDistribution(distribution: DistributionIfc, cdfLL: Double, cdfUL: Double, truncLL: Double, truncUL: Double)