Bioplib
Protein Structure C Library
|
Perform least squares fitting of coordinate sets. More...
Go to the source code of this file.
Macros | |
#define | SMALL 1.0e-20 /* Convergence cutoffs */ |
#define | SMALSN 1.0e-10 |
Functions | |
BOOL | blMatfit (COOR *x1, COOR *x2, REAL rm[3][3], int n, REAL *wt1, BOOL column) |
Perform least squares fitting of coordinate sets.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
This code performs least squares fitting of two coordinate set using the method of McLachlan as modified by Sutcliffe.
Passed two coordinate arrays both centred around the origin and, optionally, an array of weights, returns a rotation matrix.
Definition in file fit.c.
[in] | *x1 | First (fixed) array of coordinates |
[in] | *x2 | Second (mobile) array of coordinates |
[in] | n | Number of coordinates |
[in] | *wt1 | Weight array or NULL |
[in] | column | TRUE: Output a column-wise matrix (as used by FRODO) FALSE: Output a standard row-wise matrix. |
[out] | rm | Returned rotation matrix |
Fit coordinate array x2 to x1 both centred around the origin and of length n. Optionally weighted with the wt1 array if wt1 is not NULL. If column is set the matrix will be returned column-wise rather than row-wise.