public class SphereWalk extends BallWalk
Constructor and Description |
---|
SphereWalk(double radius,
OutOfBoundsBehaviour outOfBoundsBehaviour) |
SphereWalk(Random random,
double radius,
OutOfBoundsBehaviour outOfBoundsBehaviour) |
SphereWalk(Random random,
double radius,
OutOfBoundsBehaviour outOfBoundsBehaviour,
double eps) |
Modifier and Type | Method and Description |
---|---|
protected double |
getStepLength(double r,
int n) |
public SphereWalk(double radius, OutOfBoundsBehaviour outOfBoundsBehaviour)
radius
- radius of a sphereoutOfBoundsBehaviour
- the behaviour of random walk when it tries to make a step that exceeds bounds of the polytopepublic SphereWalk(Random random, double radius, OutOfBoundsBehaviour outOfBoundsBehaviour)
random
- random number generatorradius
- radius of a sphereoutOfBoundsBehaviour
- the behaviour of random walk when it tries to make a step that exceeds bounds of the polytopepublic SphereWalk(Random random, double radius, OutOfBoundsBehaviour outOfBoundsBehaviour, double eps)
random
- random number generatorradius
- radius of a sphereoutOfBoundsBehaviour
- the behaviour of random walk when it tries to make a step that exceeds bounds of the polytopeeps
- absolute error to accept in floating point comparisons (non-negative, default 1e-10)protected double getStepLength(double r, int n)
getStepLength
in class BallWalk
r
- radiusn
- number of dimensionsCopyright © 2021. All rights reserved.