org.apache.mahout.math.random
Class IndianBuffet<T>
java.lang.Object
org.apache.mahout.math.random.IndianBuffet<T>
- All Implemented Interfaces:
- Sampler<List<T>>
public final class IndianBuffet<T>
- extends Object
- implements Sampler<List<T>>
Samples a "document" from an IndianBuffet process.
See http://mlg.eng.cam.ac.uk/zoubin/talks/turin09.pdf for details
Constructor Summary |
IndianBuffet(double alpha,
org.apache.mahout.math.random.IndianBuffet.WordFunction<T> converter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndianBuffet
public IndianBuffet(double alpha,
org.apache.mahout.math.random.IndianBuffet.WordFunction<T> converter)
createIntegerDocumentSampler
public static IndianBuffet<Integer> createIntegerDocumentSampler(double alpha)
createTextDocumentSampler
public static IndianBuffet<String> createTextDocumentSampler(double alpha)
sample
public List<T> sample()
- Specified by:
sample
in interface Sampler<List<T>>
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.