手册目录
瑞利分布用于信号处理。
它有两个参数:
scale - (标准差)决定分布的平坦程度(默认为 1.0)。size - 返回数组的形状。抽取一个 scale 为 2,size 为 2x3 的瑞利分布样本:
from numpy import random x = random.rayleigh(scale=2, size=(2, 3)) print(x)
from numpy import random import matplotlib.pyplot as plt import seaborn as sns sns.displot(random.rayleigh(size=1000), kind="kde") plt.show()

在单位标准差和 2 个自由度下,瑞利分布和卡方分布表示相同的分布。
相关视频
科技资讯
24小时阅读榜
1
2
3
4
5
6
7
8
9
10
精品课程
共5课时 | 17.4万人学习
共49课时 | 78.2万人学习
共29课时 | 62.5万人学习
共25课时 | 39.7万人学习
共43课时 | 73.8万人学习