|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.probability.GeneralGeometricDistribution
public class GeneralGeometricDistribution
An implementation of DiscreteDistribution
using a generalized geometric distribution P(i)=b*c^i, i>1 and P(0)=1-sum(P(i))
| Constructor Summary | |
|---|---|
GeneralGeometricDistribution(double theCoeff,
double theBase,
int theMinVal)
Creates a new instance of GeneralGeometricDistribution |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Tests for the class |
int |
sample()
Returns a random value that follows a generalized geometric distribution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneralGeometricDistribution(double theCoeff,
double theBase,
int theMinVal)
theCoeff - The probability of successtheBase - The probability of failuretheMinVal - The lower limit of the random variable| Method Detail |
|---|
public int sample()
sample in interface DiscreteDistributionpublic static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.