public class DistGeometric extends DistributionDiscrete implements java.io.Serializable
CUMULATIVE_PROB_TOLERANCE
Constructor and Description |
---|
DistGeometric(double p)
Create a geometric distribution instance.
|
Modifier and Type | Method and Description |
---|---|
Distribution |
createUnregisteredCopy()
Create an unregistered copy of this distribution.
|
double |
getP()
Get the distribution's p parameter (probability of success).
|
void |
setP(double p)
Change (set) the p parameter of the distribution.
|
java.lang.String |
toString()
Custom toString implementation.
|
sampleDouble, sampleInt
createRegisteredCopy
getSampler, registerAccessInfo, registerSampler
public DistGeometric(double p)
p
- The p parameter (probability of success) for the distribution.public void setP(double p)
p
- The new p parameter.public double getP()
public java.lang.String toString()
toString
in class DistributionDiscrete
"Geometric(0.75)"
.public Distribution createUnregisteredCopy()
createUnregisteredCopy
in class Distribution