cc.mallet.pipe.iterator
Class RandomFeatureVectorIterator

java.lang.Object
  extended by cc.mallet.pipe.iterator.RandomFeatureVectorIterator
All Implemented Interfaces:
java.util.Iterator<Instance>

public class RandomFeatureVectorIterator
extends java.lang.Object
implements java.util.Iterator<Instance>


Constructor Summary
RandomFeatureVectorIterator(Randoms r, Alphabet vocab, java.lang.String[] classnames)
           
RandomFeatureVectorIterator(Randoms r, Dirichlet classCentroidDistribution, double classCentroidAvergeAlphaMean, double classCentroidAvergeAlphaVariance, double featureVectorSizePoissonLambda, double classInstanceCountPoissonLamba, java.lang.String[] classNames)
           
RandomFeatureVectorIterator(Randoms r, int vocabSize, int numClasses)
           
 
Method Summary
 Alphabet getAlphabet()
           
 LabelAlphabet getLabelAlphabet()
           
 boolean hasNext()
           
 Instance next()
           
 void remove()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomFeatureVectorIterator

public RandomFeatureVectorIterator(Randoms r,
                                   Dirichlet classCentroidDistribution,
                                   double classCentroidAvergeAlphaMean,
                                   double classCentroidAvergeAlphaVariance,
                                   double featureVectorSizePoissonLambda,
                                   double classInstanceCountPoissonLamba,
                                   java.lang.String[] classNames)

RandomFeatureVectorIterator

public RandomFeatureVectorIterator(Randoms r,
                                   Alphabet vocab,
                                   java.lang.String[] classnames)

RandomFeatureVectorIterator

public RandomFeatureVectorIterator(Randoms r,
                                   int vocabSize,
                                   int numClasses)
Method Detail

getAlphabet

public Alphabet getAlphabet()

reset

public void reset()

getLabelAlphabet

public LabelAlphabet getLabelAlphabet()

next

public Instance next()
Specified by:
next in interface java.util.Iterator<Instance>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Instance>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Instance>