Geometric
class Geometric(successProb: Double = 0.5, name: String? = null) : Distribution, DiscretePMFInRangeDistributionIfc, LossFunctionDistributionIfc, ThirdOrderLossFunctionIfc, GetRVariableIfc, RVParametersTypeIfc(source)
The geometric distribution is the probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... }, where X is the number of Bernoulli trials needed to get one success.
Parameters
success Prob
the probability of success
name
an optional label/name
Constructors
Properties
Functions
Link copied to clipboard
G1(x) = Emax(X - x, 0).
Link copied to clipboard
Gets the parameters as an array parameters0 is probability of success
Sets the parameters using the supplied array parameters0 is probability of success
Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): GeometricRV
Promises to return a random variable that uses the supplied stream number using the supplied stream provider
Link copied to clipboard
G2(x) = (1/2) * Emax(X - x, 0) * max(X - x - 1, 0).
Link copied to clipboard
The third order loss function, (1/6)Emax(X-x,0)*max(X-x-1,0)*max(X-x-2,0).