Trinomial
This class generates Trinomial
random variates. While Binomial is based on trials with two outcomes, success (1) or failure (0). Trinomial is based on trials with three outcomes, high (2), medium (1) or low (0). This discrete RV models the result of 'n' trials.
Value parameters
- n
-
the number of independent trials
- p
-
the probability of high (2)
- q
-
the probability of medium (1)
- stream
-
the random number stream
Attributes
- See also
-
onlinecourses.science.psu.edu/stat414/node/106 FIX - fails distribution test - maybe due to 'pf' method
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Variateclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Determine the next random number for the particular distribution.
Determine the next random number for the particular distribution.
Attributes
Determine the next random number for the particular distribution. This version allows one parameter.
Determine the next random number for the particular distribution. This version allows one parameter.
Value parameters
- z
-
the limit parameter
Attributes
Compute the probability function (pf): Either (a) the probability density function (pdf) for continuous RV's or (b) the probability mass function (pmf) for discrete RV's.
Compute the probability function (pf): Either (a) the probability density function (pdf) for continuous RV's or (b) the probability mass function (pmf) for discrete RV's.
Value parameters
- z
-
the mass point whose probability density/mass is sought
Attributes
Inherited methods
Determine whether the distribution is discrete or continuous.
Determine the next random integer for the particular distribution. It is only valid for discrete random variates.
Determine the next random integer for the particular distribution. It is only valid for discrete random variates.
Attributes
- Inherited from:
- Variate
Determine the next random integer for the particular distribution. It is only valid for discrete random variates. This version allows one parameter.
Determine the next random integer for the particular distribution. It is only valid for discrete random variates. This version allows one parameter.
Value parameters
- z
-
the limit parameter
Attributes
- Inherited from:
- Variate
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Determine the next random string for the particular distribution. For better random strings, overide this method.
Determine the next random string for the particular distribution. For better random strings, overide this method.
Attributes
- Inherited from:
- Variate
Determine the next random string for the particular distribution. For better random strings, overide this method. This version allows one parameter.
Determine the next random string for the particular distribution. For better random strings, overide this method. This version allows one parameter.
Value parameters
- z
-
the limit parameter
Attributes
- Inherited from:
- Variate
Concrete fields
Precompute the mean for the particular distribution.
Precompute the mean for the particular distribution.