平均偏差 python

2022-05-07

以下示例是关于Python中包含平均偏差 python用法的示例代码,想了解平均偏差 python的具体用法?平均偏差 python怎么用?平均偏差 python使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:mean deviation python源码类型:Python
import statistics 
import numpy as np
 
data = np.array([7,5,4,9,12,45])
 
print("Standard Deviation of the sample is % s "% (statistics.stdev(data)))
print("Mean of the sample is % s " % (statistics.mean(data)))

本文地址:https://www.itbaoku.cn/snippets/785266.html