www.ShoppingPodder.com

Leading Computer Shopping,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

Construct noise signal with a particular SNR
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer - DSP  
View previous topic :: View next topic  
Author Message
bsg
Guest






PostPosted: Mon Nov 17, 2008 10:02 pm    Post subject: Construct noise signal with a particular SNR Reply with quote

hi there,
My issue is as follows: consider I have a low-pass filtered version of a
white noise signal (fc=300 Hz, LPF) as my signal. I would like to add
different Gaussian white noise having different SNR referred to the LPF
signal. I do the following.

1. I get the power of the signal using = mean(original_signal.^2) ->{say
P_s}
2. standard deviation of the required noise = sqrt(P_s / SNR) ->{noi_std}
3. construct noise using noise_trace = noi_std.*randn(1000,1)

Now the question is, in step 1 when I am computing the power of the signal
do I use the orginal signal or the original signal with the mean removed ?

Thanks, BSG
Back to top
Piyush Kaul
Guest






PostPosted: Tue Nov 18, 2008 5:47 am    Post subject: Re: Construct noise signal with a particular SNR Reply with quote

Theoritically no. The mean is part of signal energy. SNR has signal
energy (not variance) at top term.
Practically there should be no mean, so it would not matter anyway.

Regards
Piyush

On Nov 17, 9:02 pm, "bsg" <biswasengu...@yahoo.com> wrote:
Quote:
hi there,
My issue is as follows: consider I have a low-pass filtered version of a
white noise signal (fc=300 Hz, LPF) as my signal. I would like to add
different Gaussian white noise having different SNR referred to the LPF
signal. I do the following.

1. I get the power of the signal using = mean(original_signal.^2) ->{say
P_s}
2. standard deviation of the required noise = sqrt(P_s / SNR) ->{noi_std}
3. construct noise using noise_trace = noi_std.*randn(1000,1)

Now the question is, in step 1 when I am computing the power of the signal
do I use the orginal signal or the original signal with the mean removed ?

Thanks, BSG
Back to top
Rune Allnor
Guest






PostPosted: Tue Nov 18, 2008 7:34 am    Post subject: Re: Construct noise signal with a particular SNR Reply with quote

On 17 Nov, 17:02, "bsg" <biswasengu...@yahoo.com> wrote:
Quote:
hi there,
My issue is as follows: consider I have a low-pass filtered version of a
white noise signal (fc=300 Hz, LPF) as my signal. I would like to add
different Gaussian white noise having different SNR referred to the LPF
signal. I do the following.

1. I get the power of the signal using = mean(original_signal.^2) ->{say
P_s}

This works for statinary signals. Be careful if you have
transient signals.

Quote:
2. standard deviation of the required noise = sqrt(P_s / SNR) ->{noi_std}
3. construct noise using noise_trace = noi_std.*randn(1000,1)

Now the question is, in step 1 when I am computing the power of the signal
do I use the orginal signal or the original signal with the mean removed ?

In the context of DSP one virtually always considers
zero-man signals.

Rune
Back to top
bsg
Guest






PostPosted: Tue Nov 18, 2008 6:02 pm    Post subject: Re: Construct noise signal with a particular SNR Reply with quote

Thanks guys for your reply. It seems that in the literature few people tend
to remove the mean while others don't. I am not being able to get a
rigourous rule for this. If one removed the mean, the noise std. deviation
is much smaller than the case where the signal has the mean (as expected).
This means that the noise to be added to the signal has different
amplitudes, hence is crucial. I am still confused !

PS: I am contructed the signal to be stationary
Back to top
andrew robson
Guest






PostPosted: Wed Nov 19, 2008 4:21 am    Post subject: Re: Construct noise signal with a particular SNR Reply with quote

Quote:
Thanks guys for your reply. It seems that in the literature few people
tend
to remove the mean while others don't. I am not being able to get a
rigourous rule for this. If one removed the mean, the noise std.
deviation
is much smaller than the case where the signal has the mean (as
expected).
This means that the noise to be added to the signal has different
amplitudes, hence is crucial. I am still confused !

PS: I am contructed the signal to be stationary

i maybe wrong but is power of your signal :


variance + (abs(mean))^2;

also if you adding noise is it best to add noise that has has same mean as
your signal mean.
Back to top
Display posts from previous:   
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer - DSP  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum