Class JSci.maths.statistics.GammaDistribution
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.statistics.GammaDistribution

java.lang.Object
   |
   +----JSci.maths.statistics.ProbabilityDistribution
           |
           +----JSci.maths.statistics.GammaDistribution

public final class GammaDistribution
extends ProbabilityDistribution
The GammaDistribution class provides an object for encapsulating gamma distributions.

Constructor Index

 o GammaDistribution(double)
Constructs a gamma distribution.

Method Index

 o cumulative(double)
Cumulative gamma distribution function.
 o getShapeParameter()
Returns the shape parameter.
 o inverse(double)
Inverse of the cumulative gamma distribution function.
 o probability(double)
Probability density function of a gamma distribution.

Constructors

 o GammaDistribution
  public GammaDistribution(double shape)
Constructs a gamma distribution.
Parameters:
shape - the shape parameter

Methods

 o getShapeParameter
  public double getShapeParameter()
Returns the shape parameter.
 o probability
  public double probability(double X)
Probability density function of a gamma distribution.
Returns:
the probability that a stochastic variable x has the value X, i.e. P(x=X)
Overrides:
probability in class ProbabilityDistribution
 o cumulative
  public double cumulative(double X)
Cumulative gamma distribution function.
Returns:
the probability that a stochastic variable x is less then X, i.e. P(x<X)
Overrides:
cumulative in class ProbabilityDistribution
 o inverse
  public double inverse(double probability)
Inverse of the cumulative gamma 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