Bernoulli
class Bernoulli(successProb: Double = 0.5, name: String? = null) : Distribution, DiscreteDistributionIfc, RVParametersTypeIfc(source)
Provides an implementation of the Bernoulli distribution with success probability (p) P(X=1) = p P(X=0) = 1-p
Parameters
success Prob
the probability of success, must be between (0,1)
name
an optional name
Functions
Link copied to clipboard
Gets the parameters
Sets the parameters
Link copied to clipboard
Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): BernoulliRV
Promises to return a random variable that uses the supplied stream number using the supplied stream provider