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, toString
public 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()
UnivariateDistribution
draw
in class UnivariateDistribution