|
Calculate Mahalanobis distances for the selected TableOfReal with respect to one group in the selected Discriminant object.
See Covariance & TableOfReal: To TableOfReal (mahalanobis)....
Calculate the number of datapoints that are within the one-sigma elipses of two different groups, i.e. the number of data points that are in the overlapping area.
Suppose the group labels are ø and ʏ.
t = Create TableOfReal (Pols 1973)... no
Formula... log10(self)
d = To Discriminant
select t
plus d
t1 = To TableOfReal (mahalanobis)... \o/ no
select t
plus d
t2 = To TableOfReal (mahalanobis)... \yc no
Now we count when both the t1 and t2 values are smaller than 1 (sigma):
Copy... tr
Formula... Object_'t1'[] < 1 and Object_'t2'[] < 1
Extract rows where column... 1 "equal to" 1
no = Get number of rows
© djmw, January 7, 2010