Você está na página 1de 1

ErrorEllipses

Input: onesigmauncertaintyinthexdirection:x
onesigmauncertaintyintheydirection:y
correlationcoefficientxy
centeroftheellipse:(x,y)
aspectratiooftheplot:(y/verticalplotlength)/(x/horizontalplotlength)
1)Calculatethecovariancebetweenxandy:
oxy = pxy ox oy
2)Constructthecovariancematrix:
co:mot = _
(ox)
2
oxy
oxy (oy)
2
_
3)Calculatethelengthsoftheellipseaxes,whicharethesquarerootoftheeigenvaluesofthe
covariancematrix:
cig:ol = cigcn:olucs(c)
4)Calculatethecounterclockwiserotation()oftheellipse:
0 =
1
2
Tan
-1
__
1
ospcctrotio
] _
2 oxy
(ox)
2
-(oy)
2
]_
5)Tocreatea95%confidenceellipsefromthe1errorellipse,wemustenlargeitbyafactorof
scolcoctor = 2.4477.
6)Plottheellipse:
7a)Plotanellipsewithsemimajorandsemimonoraxesparalleltothexandyaxesofthe
graph,centeredat(x,y).Theseaxislengthsarethesquarerootsoftheeigenvalues.Thelarger
eigenvaluebelongstotheaxiswiththelargeruncertainty:
Ifx>y semimajoraxislengthparalleltox=sqrt(maximum(eigenvalues))*scalefactor
semiminoraxislengthparalleltoy=sqrt(minimum(eigenvalues))*scalefactor
Ify>x semiminoraxislengthparalleltox=sqrt(minimum(eigenvalues))*scalefactor
semimajoraxislengthparalleltoy=sqrt(maximum(eigenvalues))*scalefactor
7b)Rotatetheellipseradianscounterclockwisefromitsoriginalorientation.

Você também pode gostar