Return to directory of Todd's CASA extensions
Find the outlier values, and their indices, in a list by computing
its median and median absolute deviation (scaled to the expected rms).
au.MADoutliers(mylist, c=0.6745, sigma=3)
- mylist: a list or array of values
- c: the value to normalize the Median Absolute Deviation. Dividing by c=0.6745 (the default) converts MAD to RMS for a normal Gaussian distribution.
- sigma: the multiplier to apply to the MAD to use as the threshold
Returns: 2 lists
- list of outlier values
- list of their indices
CASA <8>: au.MADoutliers([1,1,1,3,1,2,1,1])
Out: (array([3, 2]), array([3, 5]))