Documentation of 'com.datumbox.framework.core.statistics.distributions.DiscreteDistributions' Java class
DiscreteDistributions
com.datumbox.framework.core.statistics.distributions

Class DiscreteDistributions



  • public class DiscreteDistributions
    extends java.lang.Object
    This class provides methods for the CDFs and PDFs of the most common discrete distributions.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double bernoulli(boolean k, double p)
      Returns the probability of k and p
      static double bernoulliCdf(int k, double p)
      Returns the cumulative probability under bernoulli
      static double binomial(int k, double p, int n)
      Returns the probability of k of a specific number of tries n and probability p
      static double binomialCdf(int k, double p, int n)
      Returns the cumulative probability of k of a specific number of tries n and probability p
      static double geometric(int k, double p)
      Returns the probability that the first success requires k trials with probability of success p
      static double geometricCdf(int k, double p)
      Returns the cumulative probability of geometric
      static double hypergeometric(int k, int n, int Kp, int Np)
      Returns the probability of finding k successes on a sample of n, from a population with Kp successes and size Np
      static double hypergeometricCdf(int k, int n, int Kp, int Np)
      Returns the cumulative probability of hypergeometric
      static double negativeBinomial(int n, int r, double p)
      Returns the probability of requiring n tries to achieve r successes with probability of success p
      static double negativeBinomialCdf(int n, int r, double p)
      Returns the cumulative probability of negativeBinomial
      static double poisson(int k, double lamda)
      Returns the probability of k occurrences when rate is lamda
      static double poissonCdf(int k, double lamda)
      Returns the cumulative probability of poisson
      static double uniform(int n)
      Returns the probability of uniform discrete distribution with parameter n
      static double uniformCdf(int k, int n)
      Returns the cumulative probability of uniform
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiscreteDistributions

        public DiscreteDistributions()
    • Method Detail

      • bernoulli

        public static double bernoulli(boolean k,
                                       double p)
        Returns the probability of k and p
        Parameters:
        k -
        p -
        Returns:
      • bernoulliCdf

        public static double bernoulliCdf(int k,
                                          double p)
        Returns the cumulative probability under bernoulli
        Parameters:
        k -
        p -
        Returns:
      • binomial

        public static double binomial(int k,
                                      double p,
                                      int n)
        Returns the probability of k of a specific number of tries n and probability p
        Parameters:
        k -
        p -
        n -
        Returns:
      • binomialCdf

        public static double binomialCdf(int k,
                                         double p,
                                         int n)
        Returns the cumulative probability of k of a specific number of tries n and probability p
        Parameters:
        k -
        p -
        n -
        Returns:
      • geometric

        public static double geometric(int k,
                                       double p)
        Returns the probability that the first success requires k trials with probability of success p
        Parameters:
        k -
        p -
        Returns:
      • geometricCdf

        public static double geometricCdf(int k,
                                          double p)
        Returns the cumulative probability of geometric
        Parameters:
        k -
        p -
        Returns:
      • negativeBinomial

        public static double negativeBinomial(int n,
                                              int r,
                                              double p)
        Returns the probability of requiring n tries to achieve r successes with probability of success p
        Parameters:
        n -
        r -
        p -
        Returns:
      • negativeBinomialCdf

        public static double negativeBinomialCdf(int n,
                                                 int r,
                                                 double p)
        Returns the cumulative probability of negativeBinomial
        Parameters:
        n -
        r -
        p -
        Returns:
      • uniform

        public static double uniform(int n)
        Returns the probability of uniform discrete distribution with parameter n
        Parameters:
        n -
        Returns:
      • uniformCdf

        public static double uniformCdf(int k,
                                        int n)
        Returns the cumulative probability of uniform
        Parameters:
        k -
        n -
        Returns:
      • hypergeometric

        public static double hypergeometric(int k,
                                            int n,
                                            int Kp,
                                            int Np)
        Returns the probability of finding k successes on a sample of n, from a population with Kp successes and size Np
        Parameters:
        k -
        n -
        Kp -
        Np -
        Returns:
      • hypergeometricCdf

        public static double hypergeometricCdf(int k,
                                               int n,
                                               int Kp,
                                               int Np)
        Returns the cumulative probability of hypergeometric
        Parameters:
        k -
        n -
        Kp -
        Np -
        Returns:
      • poisson

        public static double poisson(int k,
                                     double lamda)
        Returns the probability of k occurrences when rate is lamda
        Parameters:
        k -
        lamda -
        Returns:
      • poissonCdf

        public static double poissonCdf(int k,
                                        double lamda)
        Returns the cumulative probability of poisson
        Parameters:
        k -
        lamda -
        Returns:

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.