gov.sandia.cognition.statistics.distribution
Class MultinomialDistribution.Domain.MultinomialIterator

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.distribution.MultinomialDistribution.Domain.MultinomialIterator
All Implemented Interfaces:
CloneableSerializable, Serializable, Cloneable, Iterator<Vector>
Enclosing class:
MultinomialDistribution.Domain

protected static class MultinomialDistribution.Domain.MultinomialIterator
extends AbstractCloneableSerializable
implements Iterator<Vector>

An Iterator over a Domain

See Also:
Serialized Form

Constructor Summary
MultinomialDistribution.Domain.MultinomialIterator(int numClasses, int numTrials)
          Creates a new instance of Domain
 
Method Summary
 boolean hasNext()
           
 Vector next()
           
 void remove()
           
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultinomialDistribution.Domain.MultinomialIterator

public MultinomialDistribution.Domain.MultinomialIterator(int numClasses,
                                                          int numTrials)
Creates a new instance of Domain

Parameters:
numClasses - Number of classes to sample from.
numTrials - Number of times to sample from the classes.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Vector>

next

public Vector next()
Specified by:
next in interface Iterator<Vector>

remove

public void remove()
Specified by:
remove in interface Iterator<Vector>