|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Random
org.statcato.random.NormalSample
public class NormalSample
A random sampler for a normal distribution, defined by the mean and standard deviation.
Constructor Summary | |
---|---|
NormalSample(double mean,
double stdev)
Constructor. |
Method Summary | |
---|---|
double |
nextSample()
Returns the next random sample |
Methods inherited from class java.util.Random |
---|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalSample(double mean, double stdev)
mean
- mean of the normal distributionstdev
- standard deviation of the normal distributionMethod Detail |
---|
public double nextSample()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |