|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectesraMath.Fit
| Field Summary | |
(package private) static int |
DIM
|
static double[] |
origin
|
| Constructor Summary | |
Fit()
|
|
| Method Summary | |
static double[][] |
alignPrincipalAxes(double[][] coords,
double[] weights)
TODO test Align the principal axes of a set of mass points with the coordinate system. |
static double[][] |
fit(double[][] coords,
double[][] refCoords,
double[] weights)
A fit of coords to refCoords (weighted by weights). |
static double[][] |
fit(double[][] coords,
int[] coordSpecs,
double[][] refCoords,
int[] refCoordSpecs,
double[] weights)
A fit of coords to refCoords (weighted by weights). |
static double[][] |
iterativeRotationalFit(double[][] pos,
double[][] refPos,
double[] weights)
DEPRECATED use rotationalFit() instead. |
static double[][] |
rotation(double[][] pos,
double[][] refPos)
SEE A.D. |
static double[][] |
rotationalFit(double[][] pos,
double[][] refPos)
The atoms of the simulation system are rotated about the origin such that the (weighted) rmsd is minimized. |
static double[][] |
rotationalFit(double[][] pos,
double[][] refPos,
double[] weights)
SEE A.D. |
static double[][] |
rotationMatrix(double[][] coords,
double[][] refCoords)
|
static double[][] |
rotationMatrixMcLachlan(double[][] pos,
double[][] refPos)
SEE A.D. |
static double[][] |
shiftCoG(double[][] coordinates,
double[] where,
double[] weights)
Shift the center of geometry of a set of 3D-coordinates and massses to some point in 3D-space. |
static double[][] |
translationalFit(double[][] coords,
double[][] refCoords,
double[] weights)
Shift the center of geometry of a set of 3D-coordinates to the center of geometry of another set of 3D-coords, both weighted by the same weights. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final int DIM
public static final double[] origin
| Constructor Detail |
public Fit()
| Method Detail |
public static double[][] fit(double[][] coords,
double[][] refCoords,
double[] weights)
coords - the coordinates to be fittedrefCoords - the reference coordinatesweights - the weights used in the fitting
public static double[][] fit(double[][] coords,
int[] coordSpecs,
double[][] refCoords,
int[] refCoordSpecs,
double[] weights)
coords - the coordinates to be fittedrefCoords - the reference coordinatesweights - the weights used in the fitting
fit(double[][], double[][], double[])
public static double[][] shiftCoG(double[][] coordinates,
double[] where,
double[] weights)
coordinates - the coordinates to be shiftedwhere - where to shift the coordinatesweights - the weights associated with the coordinates
public static double[][] translationalFit(double[][] coords,
double[][] refCoords,
double[] weights)
coords - the coordinates to be shiftedrefCoords - the target coordinatesweights - the weights
public static double[][] rotation(double[][] pos,
double[][] refPos)
SEE A.D. KEARSLEY, ACTA. CRYST. A45 (1989) 208-210.
describes a rotation about the origin such that the rmsd(pos, refPos) is minimized. the block(operator, 0, 0, 3, 3) contains the rotation matrix, while operator[3] contains the rotation eigenvalues. scaled by the number of considered coordinates (i.e. 3 * pos.length or 3 * BLA.sum(weights) for weighted fits) the square root of the smallest scaled eigenvalue (i.e. operator[3][3]) is the rmsd.
pos - the positions to be fittedrefPos - the (weighted) reference positions
public static double[][] rotationMatrix(double[][] coords,
double[][] refCoords)
coords - refCoords -
rotation(double[][], double[][])
public static double[][] rotationalFit(double[][] pos,
double[][] refPos)
pos - the positions to be fittedrefPos - the reference positions
public static double[][] rotationalFit(double[][] pos,
double[][] refPos,
double[] weights)
pos - the positions to be fittedrefPos - the reference positionsweights - the weights used in the fitting
public static double[][] rotationMatrixMcLachlan(double[][] pos,
double[][] refPos)
pos - the positions to be fittedrefPos - the (weighted) reference positions
public static double[][] iterativeRotationalFit(double[][] pos,
double[][] refPos,
double[] weights)
pos - the positions to be fittedrefPos - the reference positionsweights - the weights used in the fitting
public static double[][] alignPrincipalAxes(double[][] coords,
double[] weights)
coords - the coordinates to be shiftedweights - the weights associated with the coordinates
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||