palPxy
Given arrays of "
expected"
and "
measured"
[x,y] coordinates, and a linear model relating
them (as produced by palFitxy), compute the array of "
predicted"
coordinates and the RMS residuals
Description:
The model is supplied in the array coeffs. Naming the elements of coeffs as follows:
coeffs[0] = A
coeffs[1] = B
coeffs[2] = C
coeffs[3] = D
coeffs[4] = E
coeffs[5] = F
the model is applied thus:
xp = A
B
xm
C
ym
yp = D
E
xm
F
ym
The residuals are (xp - xe) and (yp - ye).
If np is less than or equal to zero, no coordinates are transformed, and the RMS residuals are all zero.
Invocation
palPxy ( int np, double xye[][2], double xym[][2], double coeffs[6], double xyp[][2], double
xrms, double
yrms,
double rrms
)
Arguments
np = int (Given)
number of samples
xye = double[np][2] (Given)
expected [x,y] for
each sample
xym = double[np][2] (Given)
measured [x,y] for each sample
coeffs = double[6]
coefficients of model (see below)
xyp = double[np][2] (Returned)
predicted [x,y] for each sample
xrms = double (Returned)
RMS in x
yrms = double (Returned)
RMS in y
rrms = double
(Returned)
total RMS (vector sum of xrms and yrms)
See also
palFitxy, palInvf, palXy2xy and
palDcmpf
Copyright © 2012 Science and Technology Facilities Council.
Copyright © 2014 Cornell University.
Copyright © 2015 Tim Jenness