assert min_threshold==None or min_threshold >=0
assert min_threshold==None or min_threshold <=1
assert max_threshold==None or max_threshold >=0
assert max_threshold==None or max_threshold <=1
assert min_threshold==None or max_threshold==None or min_threshold < max_threshold
//
After Change
//
// Compute the running variance and reverse running variance.
//
data = np.atleast_1d(data)
data = data[~ np.isnan(data)]
data.sort()
if len(data) == 0:
return 0