public class BetaBinomialDistribution extends AbstractBayesianDistribution
| Constructor and Description |
|---|
BetaBinomialDistribution(double alpha,
double beta,
Random gen) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double x) |
double |
getMean() |
double |
getSamples() |
double |
nextDouble()
Samples from a binomial whose underlying probability is distributed according to a
beta distribution.
|
double |
nextMean() |
org.apache.mahout.math.jet.random.AbstractContinousDistribution |
posteriorDistribution() |
cdf, nextInt, pdfpublic BetaBinomialDistribution(double alpha,
double beta,
Random gen)
public double nextDouble()
nextDouble in class AbstractBayesianDistributionpublic void add(double x)
add in class AbstractBayesianDistributionpublic double nextMean()
nextMean in class AbstractBayesianDistributionpublic org.apache.mahout.math.jet.random.AbstractContinousDistribution posteriorDistribution()
posteriorDistribution in class AbstractBayesianDistributionpublic double getMean()
getMean in class AbstractBayesianDistributionpublic double getSamples()
getSamples in class AbstractBayesianDistributionCopyright © 2013. All Rights Reserved.