Gamma
jhplot.math.num.pdf

Class Gamma

    • Constructor Detail

      • Gamma

        public Gamma()
        Default constructor. Alpha and beta are both set to 1.
      • Gamma

        public Gamma(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

      • cumulativeProbability

        public double cumulativeProbability(double x)                             throws NumericException
        The CDF for this distribution. This method returns P(X < x).
        Specified by:
        cumulativeProbability in 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.
      • getAlpha

        public double getAlpha()
        Access the alpha parameter.
        Returns:
        the alpha parameter.
      • getBeta

        public double getBeta()
        Access the beta parameter.
        Returns:
        the beta parameter.
      • setAlpha

        public void setAlpha(double a)
        Modify the alpha parameter.
        Parameters:
        a - the new alpha value.
      • setBeta

        public void setBeta(double b)
        Modify the beta parameter.
        Parameters:
        b - the new beta value.

SCaVis 1.7 © jWork.org