public class SafeMultinomialDist
extends umontreal.ssj.probdistmulti.MultinomialDist
Constructor and Description |
---|
SafeMultinomialDist(int n,
double[] p)
Creates a `MultinomialDist` object with parameters @f$n@f$ and
(@f$p_1@f$,…,@f$p_d@f$) such that @f$\sum_{i=1}^d p_i = 1@f$.
|
Modifier and Type | Method and Description |
---|---|
double |
cdf(int[] x) |
double |
prob(int[] x) |
public SafeMultinomialDist(int n, double[] p)
n
- number of trialsp
- multinomial probabilitiesCopyright © 2017–2018. All rights reserved.