Binomial
class Binomial(pSuccess: Double = 0.5, nTrials: Int = 1, name: String? = null) : Distribution, DiscretePMFInRangeDistributionIfc, LossFunctionDistributionIfc, RVParametersTypeIfc(source)
Constructors
Properties
Functions
Link copied to clipboard
Computes the first order loss function for the function for given value of x, G1(x) = Emax(X-x,0)
Link copied to clipboard
Gets the parameters
Sets the parameters
Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): BinomialRV
Promises to return a random variable that uses the supplied stream number using the supplied stream provider
Link copied to clipboard
Computes the 2nd order loss function for the distribution function for given value of x, G2(x) = (1/2)Emax(X-x,0)*max(X-x-1,0)