what I mean is that to calculate esd on the distance, you need 2x2 VcV matrix, each element of which is the 3x3 matrix of correlations between x,y and z. If you calculate a centroid (using
- Code: Select all
cent sel
) in Olex2 we then have only esd of x,y and z, but not the full VcV matrix I mentioned above, therefore the calculation of esd on the distance between the centroids will not be as accurate as the calculation which is done on full atom list where that 2x2 matrix "resides"
If however you have defined two planes in Olex2 using the
- Code: Select all
mpln sel
command as described above, for N atoms of plane A and M atoms of plane B, we create a VcV matrix of (N+M)x(N+M) dimension (Olex2 also takes the symmetry operations, if used for any of the plane atoms into account). Then we define a function to calculate the distance between the centroids as normally:
double calc_dist(A, B) {
vec3d c1, c2;
for i in [0..N]
c1 += A[i]
for i in [0..M]
c2 += B[i]
c1 /= N;
c2 /= M;
return c1.DistanceTo(c2);
}
using this function we calculate partial derivatives on all parameters and then sum the elements of the VcV matrix multiplied by the derivatives (as from the definition)...