|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.probability.UniformDiscreteDistribution
public class UniformDiscreteDistribution
An implementation of DiscreteDistribution
using a uniform distribution P(i)=i/invervalSize
| Constructor Summary | |
|---|---|
UniformDiscreteDistribution(int ll,
int ul)
Creates a new instance of UniformDiscreteDistribution |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Tests for the class |
int |
sample()
Returns a random value that follows a discrete uniform distribution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniformDiscreteDistribution(int ll,
int ul)
ll - The lower limit of the random variableul - The upper 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.