Hyper2Exponential RV
class Hyper2ExponentialRV @JvmOverloads constructor(val mixingProb: Double, val mean1: Double, val mean2: Double, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null) : ParameterizedRV(source)
Two exponential random variables mixed to get a hyper-exponential. For higher order hyper-exponential use MixtureRV. The mixing probability is the probability of getting the first exponential distribution with mean1
Parameters
mixing Prob
probability of selecting the first exponential distribution
mean1
the mean of the first exponential distribution
mean2
the mean of the second exponential distribution
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
Functions
Link copied to clipboard
open override fun instance(streamNum: Int, rnStreamProvider: RNStreamProviderIfc): Hyper2ExponentialRV