声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2041|回复: 8

[编程技巧] 如何产生一个已知均方根值的高斯白噪声?

[复制链接]
发表于 2009-7-3 11:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
rt,请高手指教!
就是我确定了我要加的高斯白噪声的均方根值,怎么产生?
谢谢
回复
分享到:

使用道具 举报

发表于 2009-7-3 23:01 | 显示全部楼层
help norm
 楼主| 发表于 2009-7-4 15:34 | 显示全部楼层
可是我如何在产生高斯白噪声的程序里定义norm(或者rms)呢?
发表于 2009-7-4 16:48 | 显示全部楼层
均方根值指的是均值吧,看看这个
Generate a random distribution with a specific mean and variance . To do this, multiply the output of randn by the standard deviation , and then add the desired mean. For example, to generate a 5-by-5 array of random numbers with a mean of .6 that are distributed with a variance of 0.1,

x = .6 + sqrt(0.1) * randn(5)
 楼主| 发表于 2009-7-4 22:22 | 显示全部楼层
xiexiexiexie
发表于 2009-7-6 07:45 | 显示全部楼层

回复 地板 friendchj 的帖子

均方根和均值差远了吧。。。。。。
发表于 2009-7-6 18:31 | 显示全部楼层

回复 6楼 wwbeyondww 的帖子

请教如何定义高斯白噪声的均方根值,以前没听说过,呵呵
发表于 2009-7-6 20:37 | 显示全部楼层
我知道的均方根(rms)就是standard deviation (std), 而variance(var)就是the square of the standard deviation (std)
发表于 2009-7-7 20:57 | 显示全部楼层
normrnd   貌似也可以的吧。。
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-19 01:39 , Processed in 0.090098 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表