public class GammaNormalDistribution extends AbstractBayesianDistribution
Constructor and Description |
---|
GammaNormalDistribution(double m,
double n,
double sd,
Random gen) |
Modifier and Type | Method and Description |
---|---|
void |
add(double x)
Adds an observed sample \(x\) to the distribution.
|
double |
getMean() |
double |
getSamples() |
double |
nextDouble()
Returns a random number from the distribution.
|
double |
nextMean() |
double |
nextSD() |
org.apache.mahout.math.jet.random.AbstractContinousDistribution |
posteriorDistribution() |
cdf, nextInt, pdf
public GammaNormalDistribution(double m, double n, double sd, Random gen)
public double nextDouble()
nextDouble
in class AbstractBayesianDistribution
public void add(double x)
add
in class AbstractBayesianDistribution
x
- The observed sample.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
public double nextSD()
Copyright © 2013. All Rights Reserved.