|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.random.UniformRandomGenerator
public class UniformRandomGenerator
This class implements a normalized uniform random generator.
Since it is a normalized random generator, it generates values from a uniform distribution with mean equal to 0 and standard deviation equal to 1. Generated values fall in the range [-√3, +√3].
| Constructor Summary | |
|---|---|
UniformRandomGenerator(RandomGenerator generator)
Create a new generator. |
|
| Method Summary | |
|---|---|
double |
nextNormalizedDouble()
Generate a random scalar with null mean and unit standard deviation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniformRandomGenerator(RandomGenerator generator)
generator - underlying random generator to use| Method Detail |
|---|
public double nextNormalizedDouble()
The number generated is uniformly distributed between -&sqrt;(3) and +&sqrt;(3).
nextNormalizedDouble in interface NormalizedRandomGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||