| Modifier and Type | Field and Description |
|---|---|
| private final int | dimension
Space dimension. |
| private final RandomGenerator | rand
RNG used for generating the individual components of the vectors. |
| Access | Constructor and Description |
|---|---|
| public | UnitSphereRandomVectorGenerator(final int
Space dimension. dimension, final RandomGenerator RNG for the individual components of the vectors. rand)
|
| public | UnitSphereRandomVectorGenerator(final int
Space dimension. dimension)Create an object that will use a default RNG ( |
| Modifier and Type | Method and Description |
|---|---|
| public double[] | nextVector()
Implements org. Generate a random vector. |
| dimension | back to summary |
|---|---|
| private final int dimension Space dimension. | |
| rand | back to summary |
|---|---|
| private final RandomGenerator rand RNG used for generating the individual components of the vectors. | |
| UnitSphereRandomVectorGenerator | back to summary |
|---|---|
public UnitSphereRandomVectorGenerator(final int dimension, final RandomGenerator rand)
| |
| UnitSphereRandomVectorGenerator | back to summary |
|---|---|
| public UnitSphereRandomVectorGenerator(final int dimension) Create an object that will use a default RNG (
| |
| nextVector | back to summary |
|---|---|
| public double[] nextVector() Implements org. Doc from org. Generate a random vector.
| |