public class NegativeBinomialUtility
extends java.lang.Object
Constructor and Description |
---|
NegativeBinomialUtility() |
Modifier and Type | Method and Description |
---|---|
static double |
getMassProbability(int y,
double mean,
double dispersion)
This method returns the mass probability from a negative binomial distribution for a particular integer.
|
public static double getMassProbability(int y, double mean, double dispersion)
y
- the count (must be equal to or greater than 0)mean
- the mean of the distributiondispersion
- the dispersion parameter