RemoveRetrieveOutli​ers(DataIn)

版本 1.3.0.0 (6.9 KB) 作者: Ali
This file uses Thompson Tau technique to remove outliers from a vector containing statistical data
80.0 次下载
更新时间 2016/12/18

查看许可证

% Please input your data with any size
%REMOVEOUTLIERS Remove outliers from data using the Thompson Tau method.
% For vectors, REMOVEOUTLIERS(DataIn) removes the elements in Input data that
% are considered outliers as defined by the Thompson Tau method. This
% applies to any data vectors greater than three elements in length, with
% no upper limit (other than that of the machine running the script).
% Additionally, the Input can be with any size of vectors, it calculate
% the outliers fir each column separately.
% Additionally, the output is the original data in the original order and
% the Oulier elements are placed with Nan.
% Also, the second output is Outliers, which shows you the removed outliers.
% Example: If DataIn =[1,1;34,0;35,35;35,35;33,33;34,34;160,160;38,38;35,35;95,35;36,36;150,150;39,39;41,41;42,40;0,0;200,200];
%
% then RemoveRetrieveOutliers(DataIn) will return these vectors:
% Example: If DataIn =[1,1;34,3;35,35;35,35;33,33;34,34;160,160;38,38;35,35;95,35;36,36;150,150;39,39;41,41;42,40;3,3;200,200];
%
% then RemoveRetrieveOutliers(DataIn) will return these vectors:
% FinalDataOut=[NaN,NaN;34,NaN;35,35;35,35;33,33;34,34;NaN,NaN;38,38;35,35;NaN,35;36,36;NaN,NaN;39,39;41,41;42,40;NaN,NaN;NaN,NaN]
% Outliers=[200;160;150;95;1;3;200;160;150;1;3;3]
% See also MEDIAN, STD, MIN, MAX, VAR, COV, MODE.

引用格式

Ali (2024). RemoveRetrieveOutliers(DataIn) (https://www.mathworks.com/matlabcentral/fileexchange/60773-removeretrieveoutliers-datain), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
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.3.0.0

Show error message if the data has lower variance and this method could not detect the outliers.

1.1.0.0

Update the function outputs.

1.0.0.0