sigma_clip

tayph.sigma_clip(array, nsigma=3.0, MAD=False)[source] [edit on github]

This returns the n-sigma boundaries of an array, mainly used for scaling plots.

Parameters
arraylist, np.ndarray

The array from which the n-sigma boundaries are required.

nsigmaint, float

The number of sigma’s away from the mean that need to be provided.

MADbool

Use the true standard deviation or MAD estimator of the standard deviation (works better in the presence of outliers).

Returns
vmin,vmaxfloat

The bottom and top n-sigma boundaries of the input array.