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()
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()
本文标题:python求list的正态分布
本文链接:https://www.haomeiwen.com/subject/bljorftx.html
网友评论