Negative Binomial RV
class NegativeBinomialRV @JvmOverloads constructor(val probOfSuccess: Double, val numSuccess: Double, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null) : ParameterizedRV(source)
NegativeBinomial(probability of success, number of trials until rth success)
Parameters
prob Of Success
the probability of success, must be in (0,1)
num Success
number of trials until rth success
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
Link copied to clipboard
constructor(probOfSuccess: Double, numSuccess: Double, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)
Functions
Link copied to clipboard
open override fun instance(streamNum: Int, rnStreamProvider: RNStreamProviderIfc): NegativeBinomialRV