public static class MultinomialDistribution.Domain extends java.util.AbstractSet<Vector>
Modifier and Type | Class and Description |
---|---|
protected static class |
MultinomialDistribution.Domain.MultinomialIterator
An Iterator over a Domain
|
Constructor and Description |
---|
Domain(int numClasses,
int numTrials)
Creates a new instance of Domain
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Vector> |
iterator() |
double |
logSize()
The log of the size.
|
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public Domain(int numClasses, int numTrials)
numClasses
- Number of classes to sample from.numTrials
- Number of times to sample from the classes.public java.util.Iterator<Vector> iterator()
public int size()
public double logSize()