jhplot.math.num.pdf
Class Beta
- java.lang.Object
- 
- jhplot.math.num.pdf.ContinuousDistribution
- 
- jhplot.math.num.pdf.Beta
 
 
- 
- All Implemented Interfaces:
- Distribution
 
 
 public class Beta extends ContinuousDistribution The Beta distribution (1). References: - Eric W. Weisstein. "Beta Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Beta.html
 
- 
- 
Constructor SummaryConstructors Constructor and Description Beta()Default constructor.Beta(double a, double b)Create a distribution with the given alpha and beta values.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecumulativeProbability(double x)The CDF for this distribution.doublegetAlpha()Access the alpha parameter.doublegetBeta()Access the beta parameter.doubleinverseCumulativeProbability(double p)The inverse CDF for this distribution.voidsetAlpha(double a)Modify the alpha parameter.voidsetBeta(double b)Modify the beta parameter.
 
- 
- 
- 
Constructor Detail- 
Betapublic Beta() Default constructor. Alpha and beta are both set to 1.
 - 
Betapublic Beta(double a, double b)Create a distribution with the given alpha and beta values.- Parameters:
- a- the alpha parameter.
- b- the beta parameter.
 
 
- 
 - 
Method Detail- 
cumulativeProbabilitypublic double cumulativeProbability(double x) throws NumericExceptionThe CDF for this distribution. This method returns P(X < x).- Specified by:
- cumulativeProbabilityin class- ContinuousDistribution
- Parameters:
- x- the value at which the CDF is evaluated.
- Returns:
- CDF for this distribution.
- Throws:
- NumericException- if the cumulative probability can not be computed.
 
 - 
getAlphapublic double getAlpha() Access the alpha parameter.- Returns:
- the alpha parameter.
 
 - 
getBetapublic double getBeta() Access the beta parameter.- Returns:
- the beta parameter.
 
 - 
inverseCumulativeProbabilitypublic double inverseCumulativeProbability(double p) throws NumericExceptionThe inverse CDF for this distribution. This method returns x such that, P(X < x) = p.- Specified by:
- inverseCumulativeProbabilityin class- ContinuousDistribution
- Parameters:
- p- the cumulative probability.
- Returns:
- x
- Throws:
- NumericException- if the inverse cumulative probability can not be computed.
 
 - 
setAlphapublic void setAlpha(double a) Modify the alpha parameter.- Parameters:
- a- the new alpha value.
 
 - 
setBetapublic void setBeta(double b) Modify the beta parameter.- Parameters:
- b- the new beta value.
 
 
- 
 
- 
DMelt 3.0 © DataMelt by jWork.ORG