Fit Linear Model to Two [x,y] Sets
CALL sla_FITXY (ITYPE, NP, XYE, XYM, COEFFS, J)
ITYPE | I | type of model: 4 or 6 (note 1) |
| ||
NP | I | number of samples (note 2) |
|
||
XYE | D(2,NP) | expected [x,y] for each sample |
|
||
XYM | D(2,NP) | measured [x,y] for each sample |
COEFFS | D(6) | coefficients of model (note 3) |
| ||
J | I | status: |
| ||
|
| 0 = OK |
| ||
|
| −1 = illegal ITYPE |
|
||
|
| −2 = insufficient data |
|
||
|
| −3 = singular solution |
xe=a+bxm+cym
ye=d+exm+fym