|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.alsUtility.Distribution
gov.nasa.alsUtility.RandomGaussianDistribution
this class produces random numbers from an interval according to a Gaussian distribution.
Field Summary | |
protected double |
center
center of the Gaussian distribution |
protected DoubleInterval |
interval
the interval from within which random numbers are produced |
protected int |
size
the number of numbers in the distribution. |
protected double |
standardDeviation
standard deviation of the Gaussian distribution |
Constructor Summary | |
RandomGaussianDistribution(int s,
DoubleInterval i,
double c,
double sd)
|
Method Summary | |
double |
get(int i)
|
int |
size()
number of values available |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int size
protected DoubleInterval interval
protected double center
protected double standardDeviation
Constructor Detail |
public RandomGaussianDistribution(int s, DoubleInterval i, double c, double sd)
s
- the size of the distributioni
- the intervalc
- center of the Gaussiansd
- standard deviation of the GaussianMethod Detail |
public int size()
Distribution
size
in class Distribution
public double get(int i)
get
in class Distribution
i
- for this particular distribution class, this is ignored
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |