|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.cluster.iterator.NeighborIterator cc.mallet.cluster.iterator.PairSampleIterator cc.mallet.cluster.iterator.ClusterSampleIterator cc.mallet.cluster.iterator.NodeClusterSampleIterator
public class NodeClusterSampleIterator
Samples merges of a singleton cluster with another (possibly non-singleton) cluster.
PairSampleIterator, NeighborIterator
Field Summary |
---|
Fields inherited from class cc.mallet.cluster.iterator.PairSampleIterator |
---|
instances, nonsingletonClusters, numberSamples, positiveCount, positiveProportion, positiveTarget, random, totalCount |
Fields inherited from class cc.mallet.cluster.iterator.NeighborIterator |
---|
clustering |
Constructor Summary | |
---|---|
NodeClusterSampleIterator(Clustering clustering,
Randoms random,
double positiveProportion,
int numberSamples)
|
Method Summary | |
---|---|
Instance |
next()
|
Methods inherited from class cc.mallet.cluster.iterator.ClusterSampleIterator |
---|
sampleFromArray, sampleSplitFromArray |
Methods inherited from class cc.mallet.cluster.iterator.PairSampleIterator |
---|
hasNext |
Methods inherited from class cc.mallet.cluster.iterator.NeighborIterator |
---|
getClustering, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeClusterSampleIterator(Clustering clustering, Randoms random, double positiveProportion, int numberSamples)
clustering
- True clustering.random
- Source of randomness.positiveProportion
- Proportion of Instances that should be positive examples.numberSamples
- Total number of samples to generate.Method Detail |
---|
public Instance next()
next
in interface java.util.Iterator<Instance>
next
in class ClusterSampleIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |