medoutlier(x,sigthr​esh,pad)

版本 1.0.0.0 (1.9 KB) 作者: Jordan Sorokin
iteratively removes outliers in a vector using median absolute deviation
164.0 次下载
更新时间 2016/2/17

查看许可证

%------------[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
%-------------------------------------------------------------------------

引用格式

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

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Descriptive Statistics 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0