Processing math: 62%

SLA_DCMPF

Interpret Linear Fit

ACTION:
Decompose an [x,y] linear fit into its constituent parameters: zero points, scales, nonperpendicularity and orientation.
CALL:
CALL sla_DCMPF (COEFFS,XZ,YZ,XS,YS,PERP,ORIENT)
GIVEN:

COEFFS

D(6)

transformation coefficients (see note)


RETURNED:

XZ

D

x zero point

YZ

D

y zero point

XS

D

x scale

YS

D

y scale

PERP

D

nonperpendicularity (radians)

ORIENT

D

orientation (radians)


NOTES:
(1)
The model relates two sets of [x,y] coordinates as follows. Naming the six elements of COEFFS a,b,c,d,e & f, the model transforms coordinates [x1,y1] into coordinates [x2,y2] as follows:

x2=a+bx1+cy1
y2=d+ex1+fy1

The sla_DCMPF routine decomposes this transformation into four steps:
(a)
Zero points:

x=x1+XZ
y=y1+YZ

(b)
Scales:

x
y = yYS

(c)
Nonperpendicularity:

x = +x cos PERP/2 + y sin PERP/2
y = +x sin PERP/2 + y cos PERP/2

(d)
Orientation:

x2 = +x cos ORIENT + y sin ORIENT
y2 = x sin ORIENT + y cos ORIENT

(2)
See also sla_FITXY, sla_PXY, sla_INVF, sla_XY2XY.