Reputation: 73
Hello I have spectral data collected over time. I want to store the outliers and there index so that the user can see where the outliers are. I have searched on how to find outliers and can't seem to find a solution to my problem.
An outlier can be defined as 1.5 times the standard deviation since this is what I've mostly seen.
data = rand(1024,20) %spectral data over time
Upvotes: 1
Views: 444
Reputation: 781
If you can upgrade, you can check out the new isoutlier and filloutliers functions in R2017a. Searching for outliers more than 1.5x the standard deviation would correspond to using the 'mean' method for finding the outliers, and specifying the 'ThresholdFactor' name-value pair to a value of 1.5. If you want a windowed approach, you can instead use the 'movmean' method and specify a window size.
Upvotes: 2