|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.doodleproject.numerics4j.random.AbstractContinuousRandomVariable
net.sf.doodleproject.numerics4j.random.NormalRandomVariable
public class NormalRandomVariable
A random variable generator for the Normal distribution.
References:
Constructor Summary | |
---|---|
NormalRandomVariable()
Default constructor. |
|
NormalRandomVariable(double m,
double s)
Create a random variable with the given mean and standard deviation. |
|
NormalRandomVariable(double m,
double s,
RNG source)
Create a random variable with the given parameters. |
Method Summary | |
---|---|
double |
nextRandomVariable()
Access the next random variable from this generator. |
static double |
nextRandomVariable(double m,
double s,
RNG source)
Access the next random variable using the given generator. |
Methods inherited from class net.sf.doodleproject.numerics4j.random.AbstractContinuousRandomVariable |
---|
getSource, nextRandomNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalRandomVariable()
public NormalRandomVariable(double m, double s)
m
- the mean.s
- the standard deviation.public NormalRandomVariable(double m, double s, RNG source)
m
- the mean.s
- the standard deviation.source
- the source generator.Method Detail |
---|
public static double nextRandomVariable(double m, double s, RNG source)
Access the next random variable using the given generator.
The implementation of this method is based on the Normal generator of Marsaglia and Bray.
m
- the mean.s
- the standard deviation.source
- the source generator.
public double nextRandomVariable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |