Hyper2ExponentialRV

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

mixingProb

probability of selecting the first exponential distribution

mean1

the mean of the first exponential distribution

mean2

the mean of the second exponential distribution

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(mixingProb: Double, mean1: Double, mean2: 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
open override val parameters: RVParameters

Functions

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