>>> help(numpy.random.random)
Help on built-in function random_sample:
random_sample(...)
random_sample(size=None)
Return random floats in the half-open interval [0.0, 1.0).
Results are from the "continuous uniform" distribution over the
stated interval. To sample :math:`Unif[a, b), b > a` multiply
the output of `random_sample` by `(b-a)` and add `a`::
(b - a) * random_sample() + a
...
Run Code Online (Sandbox Code Playgroud)
正如帮助所说,numpy.random.random()提供"连续统一"分布.
用于"高斯/白噪声"分布使用numpy.random.normal().
| 归档时间: |
|
| 查看次数: |
2606 次 |
| 最近记录: |