Documentation of 'org.statcato.statistics.GeometricProbabilityDistribution' Java class
GeometricProbabilityDistribution
org.statcato.statistics

Class GeometricProbabilityDistribution



  • public class GeometricProbabilityDistribution
    extends DiscreteProbabilityDistribution
    Geometric probability distribution class.

    Type I: models the number of trials needed to produce the first success
    Type II: model the number of failures before the first success

    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int TYPEI
      models the number of trials needed to produce the first success
      static int TYPEII
      models the number of failures before the first success
    • Constructor Summary

      Constructors 
      Constructor and Description
      GeometricProbabilityDistribution(double p, int type)
      Constructs a geometric probability distribution with the given success probability and type.
    • Field Detail

      • TYPEI

        public static int TYPEI
        models the number of trials needed to produce the first success
      • TYPEII

        public static int TYPEII
        models the number of failures before the first success
    • Constructor Detail

      • GeometricProbabilityDistribution

        public GeometricProbabilityDistribution(double p,
                                                int type)
        Constructs a geometric probability distribution with the given success probability and type.
        Parameters:
        p - success probability
        type - TYPEI (models the number of trials needed to produce the first success) or TYPEII (model the number of failures before the first success)
    • Method Detail

      • density

        public double density(double x)
        Returns the density of the distribution at x.
        Specified by:
        density in class DiscreteProbabilityDistribution
        Parameters:
        x - an integer
        Returns:
        probability density at x
      • inverseCumulativeProbability

        public java.lang.Double inverseCumulativeProbability(double area)
        Returns the inverse cumulative probability.
        Parameters:
        area - cumulative probability
        Returns:
        inverse cumulative probability

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.