Recreation of Hampel Method using "medfilt1" function
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Digital Filtering en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!