【Python】正規化したヒストグラムを描く方法
weights = np.ones_like(data)/(len(data)) plt.hist(data,bins=10,weights=weights) plt.show()
【参考】
python - plotting histograms whose bar heights sum to 1 in matplotlib - Stack Overflow
weights = np.ones_like(data)/(len(data)) plt.hist(data,bins=10,weights=weights) plt.show()
【参考】
python - plotting histograms whose bar heights sum to 1 in matplotlib - Stack Overflow