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, pdf
public BetaBinomialDistribution(double alpha, double beta, Random gen)
public double nextDouble()
nextDouble
in class AbstractBayesianDistribution
public void add(double x)
add
in class AbstractBayesianDistribution
public double nextMean()
nextMean
in class AbstractBayesianDistribution
public org.apache.mahout.math.jet.random.AbstractContinousDistribution posteriorDistribution()
posteriorDistribution
in class AbstractBayesianDistribution
public double getMean()
getMean
in class AbstractBayesianDistribution
public double getSamples()
getSamples
in class AbstractBayesianDistribution
Copyright © 2013. All Rights Reserved.