normrnd
正态随机数
说明
示例
输入参数
输出参数
替代功能
normrnd
是正态分布特有的函数。Statistics and Machine Learning Toolbox™ 还提供泛型函数random
,它支持各种概率分布。要使用random
,请创建一个NormalDistribution
概率分布对象,并将该对象作为输入参量传递,或指定概率分布名称及其参数。请注意,分布特有的函数normrnd
比泛型函数random
的执行速度要快。使用
randn
生成标准正态分布随机数。要以交互方式生成随机数,请使用
randtool
,它是用于生成随机数的用户界面。
参考
[1] Marsaglia, G, and W. W. Tsang. “A Fast, Easily Implemented Method for Sampling from Decreasing or Symmetric Unimodal Density Functions.” SIAM Journal on Scientific and Statistical Computing. Vol. 5, Number 2, 1984, pp. 349–359.
[2] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed. Hoboken, NJ: John Wiley & Sons, Inc., 1993.
扩展功能
版本历史记录
在 R2006a 之前推出