public class BetaDistribution
extends org.apache.mahout.math.jet.random.AbstractContinousDistribution
Constructor and Description |
---|
BetaDistribution(double alpha,
double beta) |
BetaDistribution(double alpha,
double beta,
Random random) |
Modifier and Type | Method and Description |
---|---|
double |
cdf(double x) |
double |
getAlpha() |
double |
getBeta() |
double |
logPdf(double x) |
double |
mean() |
double |
nextDouble()
Returns a random number from the distribution.
|
double |
nextDouble(double alpha,
double beta) |
double |
pdf(double x) |
void |
setAlpha(double alpha) |
void |
setBeta(double beta) |
void |
setRandomGenerator(Random rand)
Sets the uniform random generator internally used.
|
nextInt
public BetaDistribution(double alpha, double beta, Random random)
public BetaDistribution(double alpha, double beta)
public double nextDouble()
nextDouble
in class org.apache.mahout.math.jet.random.AbstractDistribution
public double nextDouble(double alpha, double beta)
public double pdf(double x)
pdf
in class org.apache.mahout.math.jet.random.AbstractContinousDistribution
public double logPdf(double x)
public double cdf(double x)
cdf
in class org.apache.mahout.math.jet.random.AbstractContinousDistribution
public void setAlpha(double alpha)
public void setBeta(double beta)
public double getBeta()
public double getAlpha()
public double mean()
public void setRandomGenerator(Random rand)
setRandomGenerator
in class org.apache.mahout.math.jet.random.AbstractDistribution
rand
- the new PRNGCopyright © 2013. All Rights Reserved.