You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test case:
X = [1,1;-0.5,0.5;-1,-1;0.5,-0.5];
SE = Depomod.Stats.SpanningEllipse(X);
[eigVec eigVal] = eig(SE.A);
alphaSE = atan2(eigVec(2,1), eigVec(1,1));
% although they are equivalent the rotation angle is reported as -3*pi/4 we might expect pi/4?
The text was updated successfully, but these errors were encountered:
In Depomod.Stats.SpanningEllipse an Ellipse is fitted which has parameters accessed as:
SE.Centre;
SE.MajorSemiAxis;
SE.MinorSemiAxis;
I believe the missing rotation angle parameter can be obtained from:
[eigVec eigVal] = eig(SE.A);
sigmaSE = atan2(eigVec(2,1), eigVec(1,1));
I would suggest exposing it directly as SE.Alpha
test case:
X = [1,1;-0.5,0.5;-1,-1;0.5,-0.5];
SE = Depomod.Stats.SpanningEllipse(X);
[eigVec eigVal] = eig(SE.A);
alphaSE = atan2(eigVec(2,1), eigVec(1,1));
% although they are equivalent the rotation angle is reported as -3*pi/4 we might expect pi/4?
The text was updated successfully, but these errors were encountered: