📜  中值绝对偏差 python 代码示例

📅  最后修改于: 2022-03-11 14:46:17.398000             🧑  作者: Mango

代码示例1
# Median Absolute Deviation, MAD, is available in SciPy
from scipy.stats import median_abs_deviation

my_array = list(range(0, 10)) + [1000]
mad = median_abs_deviation(my_array)
print(mad) # prints 3.0