|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.probability.GeometricDistribution
public class GeometricDistribution
An implementation of DiscreteDistribution
using a geometric distribution P(i)=p*(1-p)^i
| Constructor Summary | |
|---|---|
GeometricDistribution(double theBase,
int theMinVal)
Creates a new instance of GeometricDistribution |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Tests for the class |
int |
sample()
Returns a random value that follows a geometric distribution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeometricDistribution(double theBase,
int theMinVal)
theBase - The probability of successtheMinVal - 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.