Compare two Fourier series to depict the signal smoothness

조회 수: 4 (최근 30일)
SM
SM 2021년 7월 26일
댓글: SM 2021년 7월 31일
Hello
I have several signals, that I am trying to find a metric to compare the signal smoothness. By signal smoothness I mean, the signal that the distance between the peak to trough become smaller (getting close to becoming flat) is smoother, and if this peak-tough distance increases it becomes wavier.
I can fit a Fourier series with eight terms to all of them. it means that I do have a Fourier series equation with eight terms for all of them.
My question is that how I can compare the Fourier series coefficient to each other, in order to evaluate the signal smoothness?
since for a single term Fourier series (i.e f(x)=a0+a1cos(xw)+b1sin (xw)) I can use the "sqrt ((a1^2)+(b1^2))" as an indicator of surface smoothness. but I do not know what I should do when it has eight terms? Thank you

답변 (1개)

Swetha Polemoni
Swetha Polemoni 2021년 7월 29일
Hi
You can use findpeaks to find local maxima i.e., all the peaks in the signal. Now invert the siganl and use "findpeaks" to find local minima of the signal. The following answer might help you to understand more about how to use "findpeaks".
Now you can use mean absolute error or mean square error between local maxima and local minima of the siganl to get its smoothness.
  댓글 수: 1
SM
SM 2021년 7월 31일
Hello
Thanks for your response.
That is the alternative approach that I am currently using. However, I was hoping to find a way to compare the Fourier series coefficient since that is a more accurate representor or of the data.
Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by