|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.RotationMatrixBuilder
public class RotationMatrixBuilder
Builds rotation matrices of any dimension constructively from one or more 2D planar rotations. Three types of construction mechanisms are provided:
new RotationMatrixBuilder(3).rotatePlane(0,1).withTheta(Math.PI/4)
.rotatePlane(1,2).withTheta(Math.PI/8).create()
new RotationMatrixBuilder(3).rotatePlane(0,1).rotatePlane(1,2)
.withRandomThetas().create()
new RotationMatrixBuilder(3).rotateK(2).create()
References:
| Constructor Summary | |
|---|---|
RotationMatrixBuilder(int dimension)
Constructs a rotation matrix builder for the given dimension. |
|
| Method Summary | |
|---|---|
org.apache.commons.math3.linear.RealMatrix |
create()
Returns the rotation matrix resulting from applying all 2D rotation planes and angles added to this builder. |
RotationMatrixBuilder |
rotateAll()
Rotates all 2D rotation planes and assigns each a random rotation angle. |
RotationMatrixBuilder |
rotateK(int k)
Rotates k randomly-selected but unique 2D rotation planes and
assigns each a random rotation angle. |
RotationMatrixBuilder |
rotatePlane(int i,
int j)
Adds a rotation around the 2D rotation plane defined by the two axes. |
RotationMatrixBuilder |
withRandomThetas()
Assigns random rotation angles to all 2D rotation planes added to this builder. |
RotationMatrixBuilder |
withTheta(double theta)
Sets the rotation angle, in radians, of the last 2D rotation plane added to this builder. |
RotationMatrixBuilder |
withThetas(double theta)
Sets the rotation angle, in radians, of all 2D rotation planes added to this builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RotationMatrixBuilder(int dimension)
dimension - the dimension of rotation matrices produced by
this builder| Method Detail |
|---|
public RotationMatrixBuilder rotatePlane(int i,
int j)
withTheta(double).
i - the first axisj - the second axis
public RotationMatrixBuilder withTheta(double theta)
rotatePlane(int, int).
theta - the rotation angle in radians
public RotationMatrixBuilder withThetas(double theta)
theta - the rotation angle in radians
public RotationMatrixBuilder withRandomThetas()
public RotationMatrixBuilder rotateAll()
public RotationMatrixBuilder rotateK(int k)
k randomly-selected but unique 2D rotation planes and
assigns each a random rotation angle. For an N-dimension
rotation matrix, there exist (N choose 2) 2D rotation planes.
k - the number of randomly-selected 2D rotation planes
public org.apache.commons.math3.linear.RealMatrix create()
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||