public class UnitSphereRandomVectorGenerator extends Object implements RandomVectorGenerator
Constructor and Description |
---|
UnitSphereRandomVectorGenerator(int dimensionIn)
Create an object that will use a default RNG (
MersenneTwister ),
in order to generate the individual components. |
UnitSphereRandomVectorGenerator(int dimensionIn,
RandomGenerator randIn) |
Modifier and Type | Method and Description |
---|---|
double[] |
nextVector()
Generate a random vector.
|
public UnitSphereRandomVectorGenerator(int dimensionIn, RandomGenerator randIn)
dimensionIn
- Space dimension.randIn
- RNG for the individual components of the vectors.public UnitSphereRandomVectorGenerator(int dimensionIn)
MersenneTwister
),
in order to generate the individual components.dimensionIn
- Space dimension.public double[] nextVector()
nextVector
in interface RandomVectorGenerator
Copyright © 2019 CNES. All rights reserved.