denoise.py
def mad(arr):
    """ Median Absolute Deviation: a "Robust" version of standard deviation.
        Indices variability of the sample.
        https://en.wikipedia.org/wiki/Median_absolute_deviation 
    """
    arr = np.ma.array(arr).compressed()
    med = np.median(arr)
    return np.median(np.abs(arr - med))
 Median Absolute Deviation: a "Robust" version of standard deviation.
        Indices variability of the sample.
        https://en.wikipedia.org/wiki/Median_absolute_deviation 
    
Median Absolute Deviation: a "Robust" version of standard deviation.
Indices variability of the sample.
Median Absolute Deviation : a " Robust " version of standard deviation . Indices variability of the sample .
def mad(arr):
    arr = np.ma.array(arr).compressed()
    med = np.median(arr)
    return np.median(np.abs(arr - med))
def mad ( arr ) : arr = np . ma . array ( arr ) . compressed ( ) med = np . median ( arr ) return np . median ( np . abs ( arr - med ) )
Median Absolute Deviation: a "Robust" version of standard deviation.
Median Absolute Deviation : a " Robust " version of standard deviation .
""" Median Absolute Deviation: a "Robust" version of standard deviation.
        Indices variability of the sample.
        https://en.wikipedia.org/wiki/Median_absolute_deviation 
    """
arr