public final class ChineseRestaurant extends Object implements Sampler<Integer>
| Constructor and Description |
|---|
ChineseRestaurant(double alpha)
Constructs a Dirichlet process sampler.
|
ChineseRestaurant(double alpha,
double discount)
Constructs a Pitman-Yor sampler.
|
public ChineseRestaurant(double alpha)
alpha - The strength parameter for the Dirichlet process.public ChineseRestaurant(double alpha,
double discount)
alpha - The strength parameter that drives the number of unique values as a function of draws.discount - The discount parameter that drives the percentage of values that occur once in a large sample.Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.