Python difference between randn and normal

前端 未结 3 895
情深已故
情深已故 2021-01-31 15:29

I\'m using the randn and normal functions from Python\'s numpy.random module. The functions are pretty similar from what I\'ve read in the

3条回答
  •  孤独总比滥情好
    2021-01-31 16:22

    randn seems to give a distribution from some standardized normal distribution (mean 0 and variance 1). normal takes more parameters for more control. So rand seems to simply be a convenience function

提交回复
热议问题