Package HAL.Tools
Class MultinomialCalc
- java.lang.Object
-
- HAL.Rand
-
- HAL.Tools.MultinomialCalc
-
- All Implemented Interfaces:
java.io.Serializable
public class MultinomialCalc extends Rand implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
popRemaining
double
probRemaining
-
Constructor Summary
Constructors Constructor Description MultinomialCalc(Rand rng)
-
Method Summary
Modifier and Type Method Description int
GetPopRemaining()
double
GetProbRemaining()
int
Sample(double prob)
void
Setup(int pop)
-
Methods inherited from class HAL.Rand
Binomial, Binomial, Bool, Double, Double, Double, ExponentialDist, Gaussian, Int, Long, Multinomial, Multinomial, RandomDS, RandomIS, RandomPointInCircle, RandomPointInSphere, RandomPointOnCircleEdge, RandomPointOnSphereEdge, RandomVariable, RandomVariable, RandomVariable, Shuffle, Shuffle, Shuffle, Shuffle, Shuffle, Shuffle, Shuffle, Shuffle
-
-
-
-
Constructor Detail
-
MultinomialCalc
public MultinomialCalc(Rand rng)
-
-