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, pdfpublic GammaNormalDistribution(double m,
double n,
double sd,
Random gen)
public double nextDouble()
nextDouble in class AbstractBayesianDistributionpublic void add(double x)
add in class AbstractBayesianDistributionx - The observed sample.public 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 AbstractBayesianDistributionpublic double nextSD()
Copyright © 2013. All Rights Reserved.