原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.standard_normal.html
校对:(虚位以待)
numpy.random.
standard_normal
(size=None)从标准正态分布绘制样品(平均值= 0,stdev = 1)。
参数: | size:int或tuple的整数,可选
|
---|---|
返回: | out:float或ndarray
|
例子
>>> s = np.random.standard_normal(8000)
>>> s
array([ 0.6888893 , 0.78096262, -0.89086505, ..., 0.49876311, #random
-0.38672696, -0.4685006 ]) #random
>>> s.shape
(8000,)
>>> s = np.random.standard_normal(size=(3, 4, 2))
>>> s.shape
(3, 4, 2)