Simba
Simba copied to clipboard
TPA.Variance
I actually stumbled on this by accident as I don't really need this but TPA doesn't seem to have a variance method and causes this to not compile:
var
tpa: TPointArray;
begin
tpa.Variance();
end.
What about:
TPA.ToAxes(X,Y);
vx := X.variance();
vy := Y.Variance();
Would give you the var in each axis.
What about:
TPA.ToAxes(X,Y); vx := X.variance(); vy := Y.Variance();Would give you the var in each axis.
That compiles fine
My bad, I misunderstood the issue, Simba implies TPA supports var? Iirc those methods are dedicated to numeric arrays.
Yeah, I didn't even understand what TPA.Variance was supposed to be, but in that case it shouldn't have it available right? makes it confusing.