NormalizedRandomGeneratorpublic class UniformRandomGenerator extends Object implements NormalizedRandomGenerator
It generates values from a uniform distribution with mean equal to 0 and standard deviation equal to 1. Generated values fall in the range \( [-\sqrt{3}, +\sqrt{3}] \).
| Constructor | Description |
|---|---|
UniformRandomGenerator(org.apache.commons.rng.UniformRandomProvider generator) |
Creates a new generator.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
nextNormalizedDouble() |
Generates a random scalar with zero mean and unit standard deviation.
|
public UniformRandomGenerator(org.apache.commons.rng.UniformRandomProvider generator)
generator - Underlying random generator.public double nextNormalizedDouble()
nextNormalizedDouble in interface NormalizedRandomGeneratorCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.