cupy.random.logistic#

cupy.random.logistic(loc=0.0, scale=1.0, size=None, dtype=<class 'float'>)[source]#

Logistic 分布。

返回一个从 Logistic 分布中抽取样本的数组。其概率密度函数定义为

\[f(x) = \frac{e^{-(x-\mu)/s}}{s(1+e^{-(x-\mu)/s})^2}.\]
参数:
  • loc (float) – 众数 \(\mu\) 的位置参数。

  • scale (float) – 尺度参数 \(s\)

  • size (intint 元组) – 数组的形状。如果为 None,则生成一个零维数组。

  • dtype – 数据类型说明符。只允许 numpy.float32numpy.float64 类型。

返回:

从 Logistic 分布中抽取的样本。

返回类型:

cupy.ndarray