필터 지우기
필터 지우기

How does the "smoothing factor" in smoothdata work?

조회 수: 6 (최근 30일)
Ed Frank
Ed Frank 2020년 4월 14일
편집: Scott MacKenzie 2021년 6월 23일
Dear Matlab community,
I am currently trying to remove noise in sensor data with the smoothdata function. I noticed that I usually get far better results by choosing a "smoothing factor" instead of a moving window of values for median calculation (or other methods). However, I need to provide mathematically rigid results, so I wonder how this smoothing factor works. All that I found in the help document was that it "adjusts the level of smoothing by scaling the heuristic window size".
Does anyone of you know what the "heuristic window size" is, if it changes throughout the data series and if I can determine its size?
Many thanks in advance,
Ed
  댓글 수: 3
Scott MacKenzie
Scott MacKenzie 2021년 6월 23일
편집: Scott MacKenzie 2021년 6월 23일
Just to clarify, are you interested in knowning what the heuristic is when using the 'smoothingfactor' option or in knowing what actual window size is used?
DGM
DGM 2021년 6월 23일
FWIW, you can always look at smoothdata.m and its support files. On line 436 (in R2019b), smoothdata.m sets winsz by calling $MLROOT/toolbox/matlab/datafun/+matlab/+internal/+math/chooseWindowSize.m
The file can be plainly read and has plenty of comments if you want to figure it out.

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

답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by