public final class Space1D extends Space
Modifier and Type | Method | Description |
---|---|---|
int |
D() |
|
static Space1D |
getInstance() |
|
double[] |
makeArrayD(double d) |
|
int[] |
makeArrayD(int i) |
|
IOrientation |
makeOrientation() |
|
RotationTensor |
makeRotationTensor() |
|
Tensor |
makeTensor() |
|
Vector |
makeVector() |
|
double |
powerD(double a) |
|
int |
powerD(int n) |
|
static double |
r2(Vector1D u1,
Vector1D u2,
Boundary b) |
Computes the square of the magnitude of the difference of two vectors, subject
to a nearest image transformation.
|
static double |
r2(Vector1D u1,
Vector1D u2,
Boundary b,
Vector1D work) |
Computes the square of the magnitude of the difference of two vectors, subject
to a nearest image transformation.
|
double |
rootD(double a) |
|
double |
sphereArea(double r) |
The surface "area" of the "sphere" defined in the D-dimensional space.
|
double |
sphereVolume(double r) |
The "volume" of the "sphere" defined in the D-dimensional space.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getD, getInstance, makeVector, makeVector, makeVector, makeVectorArray
public static Space1D getInstance()
public static final double r2(Vector1D u1, Vector1D u2, Boundary b)
public static final double r2(Vector1D u1, Vector1D u2, Boundary b, Vector1D work)
u1
- one of the vectors and is unchanged by the calculationu2
- the other vector and is unchanged by the calculationb
- a nearest image transformationwork
- a work vector used for the calculationpublic int powerD(int n)
public double powerD(double a)
public double rootD(double a)
public double sphereVolume(double r)
Space
sphereVolume
in class Space
r
- the radiuspublic double sphereArea(double r)
Space
sphereArea
in class Space
r
- the sphere radiuspublic Vector makeVector()
makeVector
in class Space
public IOrientation makeOrientation()
makeOrientation
in class Space
public Tensor makeTensor()
makeTensor
in class Space
public RotationTensor makeRotationTensor()
makeRotationTensor
in class Space
public int[] makeArrayD(int i)
makeArrayD
in class Space
public double[] makeArrayD(double d)
makeArrayD
in class Space