public class UniformRandomGenerator extends Object implements NormalizedRandomGenerator
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 and Description |
---|
UniformRandomGenerator(RandomGenerator generator)
Create a new generator.
|
Modifier and Type | Method and Description |
---|---|
double |
nextNormalizedDouble()
Generate a random scalar with null mean and unit standard deviation.
|
public UniformRandomGenerator(RandomGenerator generator)
generator
- underlying random generator to usepublic double nextNormalizedDouble()
The number generated is uniformly distributed between -&sqrt;(3) and +&sqrt;(3).
nextNormalizedDouble
in interface NormalizedRandomGenerator
Copyright © 2016–2017 Hipparchus.org. All rights reserved.