    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.

##

GammaDistribution(double)
  Constructs a gamma distribution.

##

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

##

GammaDistribution

     public GammaDistribution(double shape)

  Constructs a gamma distribution.

  Parameters:
    shape - the shape parameter

##

getShapeParameter

     public double getShapeParameter()

  Returns the shape parameter.

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

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

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