public class StableRandomGenerator extends Object implements NormalizedRandomGenerator
This class provides a stable normalized random generator. It samples from a stable distribution with location parameter 0 and scale 1.
The implementation uses the Chambers-Mallows-Stuck method as described in Handbook of computational statistics: concepts and methods by James E. Gentle, Wolfgang Härdle, Yuichi Mori.
Constructor and Description |
---|
StableRandomGenerator(RandomGenerator generatorIn,
double alphaIn,
double betaIn)
Create a new generator.
|
Modifier and Type | Method and Description |
---|---|
double |
nextNormalizedDouble()
Generate a random scalar with zero location and unit scale.
|
public StableRandomGenerator(RandomGenerator generatorIn, double alphaIn, double betaIn)
generatorIn
- underlying random generator to usealphaIn
- Stability parameter. Must be in range (0, 2]betaIn
- Skewness parameter. Must be in range [-1, 1]NullArgumentException
- if generator is nullOutOfRangeException
- if alpha <= 0
or alpha > 2
or beta < -1
or beta > 1
public double nextNormalizedDouble()
nextNormalizedDouble
in interface NormalizedRandomGenerator
Copyright © 2019 CNES. All rights reserved.