Thread Subject: Which ML function should I use to approx smoothness of a signal?

Subject: Which ML function should I use to approx smoothness of a signal?

From: G.A.M.

Date: 1 Oct, 2007 19:27:34

Message: 1 of 2

I have a raw signal as a vector.
I have a smoothed signal derived from the raw signal with an
in-house algorithm. (It is another vector.)

I need to quantify the variance of the smoothed signal from
the raw signal. What are some good options for this in Matlab?

Also, as a second question, if I want to quantify the noise
in the raw signal (referenced to itself only), what Matlab
functions should I look at?

Thanks

Subject: Which ML function should I use to approx smoothness of a signal?

From: John D'Errico

Date: 1 Oct, 2007 20:09:56

Message: 2 of 2

"G.A.M. " <x0zero@gmail.com> wrote in message <fdrhn6$nti
$1@fred.mathworks.com>...
> I have a raw signal as a vector.
> I have a smoothed signal derived from the raw signal with an
> in-house algorithm. (It is another vector.)
>
> I need to quantify the variance of the smoothed signal from
> the raw signal. What are some good options for this in Matlab?
>
> Also, as a second question, if I want to quantify the noise
> in the raw signal (referenced to itself only), what Matlab
> functions should I look at?

Interesting. I happen to have a code that solves
exactly this problem. I'll post it on the file exchange.
I was waiting to add a few more bells and whistles,
but if there is a use for it, I'll post it now. Give it a
day to show up there.

As an example, gaussian noise added to a sine wave,
nominal variance = 0.01.

t = linspace(0,1,1000)';
x = sin(t*50) + randn(size(t))/10;

v = estimatenoise(x)
v =
      0.0096887

HTH,
John

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com