public class MultinomialRVG extends Object implements RandomVectorGenerator
rmultinom in package normix.| Constructor and Description |
|---|
MultinomialRVG(int N,
double[] prob)
Constructs a multinomial random vector generator.
|
MultinomialRVG(int N,
double[] prob,
RandomLongGenerator uniform)
Constructs a multinomial random vector generator.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
nextVector()
Get the next random vector.
|
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
public MultinomialRVG(int N,
double[] prob,
RandomLongGenerator uniform)
N - an integer, say N, specifying the total number of objects that are put
into K boxes in a typical multinomial experimentprob - a numeric non-negative vector of length K, specifying the probability
for the K boxesuniform - a uniform random number generatorpublic MultinomialRVG(int N,
double[] prob)
N - an integer, say N, specifying the total number of objects that are put
into K boxes in a typical multinomial experimentprob - a numeric non-negative vector of length K, specifying the probability for
the K boxespublic void seed(long... seeds)
Seedablepublic double[] nextVector()
RandomVectorGeneratornextVector in interface RandomVectorGeneratorCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.