CONAN.utils.outlier_clipping
============================

.. py:function:: CONAN.utils.outlier_clipping(x, y, yerr=None, clip=5, width=15, verbose=True, return_clipped_indices=False)

   Remove outliers using a running median method. Points > clip*M.A.D are removed
   where M.A.D is the mean absolute deviation from the median in each window

   :param x: dependent variable.
   :type x: array_like;
   :param y: Depedent variable. data on which to perform clipping
   :type y: array_like; same shape as x
   :param yerr: errors on the dependent variable
   :type yerr: array_like(x);
   :param clip: cut off value above the median. Default is 5
   :type clip: float;
   :param width: Number of points in window to use when computing the running median. Must be odd. Default is 15
   :type width: int;

   :returns: **x_new, y_new, yerr_new**
   :rtype: Each and array with the remaining points after clipping

