public class RHRandomNumberGenerator extends RandomNumberGenerator
Constructor and Description |
---|
RHRandomNumberGenerator() |
Modifier and Type | Method and Description |
---|---|
MoveVector |
nextMove(double theMean,
double theSD,
boolean is3D)
returns a Capture with random coordinates
|
PolarVector |
nextPolarVector(double theMean,
double theSD,
boolean is3D)
returns a Capture with random coordinates
|
SpatialVector |
nextSpatialVector()
returns a Capture with random coordinates
|
SpatialVector |
nextSpatialVector(double lowX,
double highX,
double lowY,
double highY,
double lowZ,
double highZ)
returns a Capture with random coordinates
|
SpatialVector |
nextSpatialVector(GridSpace3D map)
returns a Capture with random coordinates
|
java.util.Vector<java.lang.Object> |
scrambleOrder(java.util.Vector<?> aVec)
scrambles the order of elements in a vector
|
next, nextBeta, nextBoolean, nextBoolean, nextChiSq, nextChiSq, nextChiSq, nextExp, nextExp, nextExp, nextGamma, nextGamma, nextGamma, nextGaussian, nextGaussian, nextInt, nextInt, nextPoisson, nextPoisson, nextUniform, nextUniform, setSeed
public SpatialVector nextSpatialVector(double lowX, double highX, double lowY, double highY, double lowZ, double highZ)
lowX
- x-coordinate in double precisionhighX
- x-coordinate in double precisionlowY
- y-coordinate in double precisionhighY
- y-coordinate in double precisionlowZ
- z-coordinate in double precisionhighZ
- z-coordinate in double precisionpublic SpatialVector nextSpatialVector()
public SpatialVector nextSpatialVector(GridSpace3D map)
map
- coordinate is within this gridspacepublic PolarVector nextPolarVector(double theMean, double theSD, boolean is3D)
theMean
- mean of distributiontheSD
- standard deviation of distributionis3D
- includes a z-dimensionpublic MoveVector nextMove(double theMean, double theSD, boolean is3D)
public java.util.Vector<java.lang.Object> scrambleOrder(java.util.Vector<?> aVec)
RH, 2017