TruncatedRV

class TruncatedRV @JvmOverloads constructor(distribution: InvertibleCDFIfc, val cdfLL: Double, val cdfUL: Double, val lowerLimit: Double, val upperLimit: Double, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null) : RVariable(source)

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

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

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

name

an optional name

Constructors

Link copied to clipboard
constructor(distribution: ContinuousDistributionIfc, distDomain: Interval = distribution.domain(), truncInterval: Interval, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)
constructor(distribution: InvertibleCDFIfc, cdfLL: Double, cdfUL: Double, lowerLimit: Double, upperLimit: Double, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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