Class JSci.maths.statistics.BetaDistribution
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.maths.statistics.BetaDistribution
java.lang.Object
|
+----JSci.maths.statistics.ProbabilityDistribution
|
+----JSci.maths.statistics.BetaDistribution
- public final class BetaDistribution
- extends ProbabilityDistribution
The BetaDistribution class provides an object for encapsulating beta distributions.
-
BetaDistribution(double, double)
- Constructs a beta distribution.
-
cumulative(double)
- Cumulative beta distribution function.
-
getDegreesOfFreedomP()
- Returns the degrees of freedom p.
-
getDegreesOfFreedomQ()
- Returns the degrees of freedom q.
-
inverse(double)
- Inverse of the cumulative beta distribution function.
-
probability(double)
- Probability density function of a beta distribution.
BetaDistribution
public BetaDistribution(double dgrP,
double dgrQ)
- Constructs a beta distribution.
- Parameters:
- dgrP - degrees of freedom p
- dgrQ - degrees of freedom q
getDegreesOfFreedomP
public double getDegreesOfFreedomP()
- Returns the degrees of freedom p.
getDegreesOfFreedomQ
public double getDegreesOfFreedomQ()
- Returns the degrees of freedom q.
probability
public double probability(double X)
- Probability density function of a beta distribution.
- Returns:
- the probability that a stochastic variable x has the value X, i.e. P(x=X)
- Overrides:
- probability in class ProbabilityDistribution
cumulative
public double cumulative(double X)
- Cumulative beta distribution function.
- Returns:
- the probability that a stochastic variable x is less then X, i.e. P(x<X)
- Overrides:
- cumulative in class ProbabilityDistribution
inverse
public double inverse(double probability)
- Inverse of the cumulative beta distribution function.
- Returns:
- the value X for which P(x<X)
- Overrides:
- inverse in class ProbabilityDistribution
All Packages Class Hierarchy This Package Previous Next Index