medoutlier(x,sigthr​esh,pad)

iteratively removes outliers in a vector using median absolute deviation
164 Downloads
Aktualisiert 17. Feb 2016

Lizenz anzeigen

%------------[idx,vals,filt] = medoutlier(x,sigthresh,pad)----------------
% iterative outlier detection using median-absoulte deviation (MAD)
% via the equation:
% scores = abs(x - median(x)) / mad(x)
%
% scores higher than a set threshold will be removed
%
% >>> INPUTS >>>
% Required:
% x = data vector
% Optional:
% sigthresh = threshold to remove outliers (default = 3)
% pad = will pad output vector with nans for each removed data point to
% preserve the length (if output vector "filt" is called)
%
% <<< OUTPUTS <<<
% idx = index of outliers
% vals = values of the outliers
% filt = new vector with outliers removed (optionally padded with nans)
%
% By JMS, 1/15/2016
%-------------------------------------------------------------------------

Zitieren als

Jordan Sorokin (2024). medoutlier(x,sigthresh,pad) (https://www.mathworks.com/matlabcentral/fileexchange/55459-medoutlier-x-sigthresh-pad), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2013a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Descriptive Statistics finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0