public class GeometricDistribution extends DiscreteDistribution
name| Constructor and Description |
|---|
GeometricDistribution(java.lang.String name,
int k,
double p)
Will create a geometric distribution based on the COLT library.
|
| Modifier and Type | Method and Description |
|---|---|
double |
draw()
Draw a value from the distribution according to the distribution at hand
|
int |
getK() |
double |
getP() |
getName, toStringpublic GeometricDistribution(java.lang.String name,
int k,
double p)
name - Name of the distribution (will be prefixed by GeometricDistribution_)k - the argument to the probability distribution function for the COLT implementationp - the parameter of the probability distribution function for the COLT implementationpublic int getK()
public double getP()
public double draw()
UnivariateDistributiondraw in class UnivariateDistribution