|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.random.UnitSphereRandomVectorGenerator
public class UnitSphereRandomVectorGenerator
Generate random vectors isotropically located on the surface of a sphere.
Constructor Summary | |
---|---|
UnitSphereRandomVectorGenerator(int dimension)
Create an object that will use a default RNG ( MersenneTwister ),
in order to generate the individual components. |
|
UnitSphereRandomVectorGenerator(int dimension,
RandomGenerator rand)
|
Method Summary | |
---|---|
double[] |
nextVector()
Generate a random vector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitSphereRandomVectorGenerator(int dimension, RandomGenerator rand)
dimension
- Space dimension.rand
- RNG for the individual components of the vectors.public UnitSphereRandomVectorGenerator(int dimension)
MersenneTwister
),
in order to generate the individual components.
dimension
- Space dimension.Method Detail |
---|
public double[] nextVector()
nextVector
in interface RandomVectorGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |