Documentation API of the 'jhplot.math.num.pdf.Geometric' Java class
Geometric
jhplot.math.num.pdf

Class Geometric

    • Constructor Detail

      • Geometric

        public Geometric()
        Default constructor. The probability of success is set to 0.5.
      • Geometric

        public Geometric(double p)
        Create a distribution with the given probability of success.
        Parameters:
        p - the probability of success.
    • Method Detail

      • cumulativeProbability

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

        public double getProbabilityOfSuccess()
        Access probability of success.
        Returns:
        the probability of success.
      • inverseCumulativeProbability

        public int inverseCumulativeProbability(double p)                                 throws NumericException
        The inverse CDF for this distribution. This method returns the largest x such that, P(X ≤ x) ≤ p. The return value must also satisfy P(X ≥ x) &ge 1 - p.
        Specified by:
        inverseCumulativeProbability in class DiscreteDistribution
        Parameters:
        p - the cumulative probability.
        Returns:
        x
        Throws:
        NumericException - if the inverse cumulative probability can not be computed.
      • probability

        public double probability(int x)
        The PMF for this distribution. This method returns P(X = x).
        Specified by:
        probability in class DiscreteDistribution
        Parameters:
        x - the value at which the probability is evaluated.
        Returns:
        PMF for this distribution.
      • setProbabilityOfSuccess

        public void setProbabilityOfSuccess(double p)
        Modify probability of success.
        Parameters:
        p - the new probability of success value.

DataMelt 1.1 © jWork.ORG

Warning: You see this message because an access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of dataMelt, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.