Recreation of Hampel Method using "medfilt1" function
Ältere Kommentare anzeigen
Please see the attached filles and run hampelTest.m
I am trying to reproduce the results of running hampel(yv,3) using medfilt1 and the MAD calculation. The value of the median from hampel [shown as xm] is identical to medfilt1(yv,7). This is confirmed in medTest. The value of the std deviation (MAD), shown as xs, is different than medfilt1(abs(yv-medfilt1(yv,7),7). This is confirmed as stdTest.
Please inform me as to how to reproduce xs from hampel using medfilt1.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Digital Filtering finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!