python求list的正态分布

2018-05-09  本文已影响0人  Do_More
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt

x = np.array(peak_array)
y = stats.norm.pdf(x, 0, 1)

plt.plot(x, y)
plt.xlabel('x')
plt.ylabel('p')
plt.show()
上一篇 下一篇

猜你喜欢

热点阅读