isoutlier Function, How window slides at edges.
1 view (last 30 days)
Show older comments
Burak Ahmet Celebi
on 5 Oct 2020
Commented: Burak Ahmet Celebi
on 13 Oct 2020
I don't understand how "isoutlier" Functions window parameter slides. As an example:
WindowLength=10;
TF = isoutlier(MY_DATA,'movmedian',WindowLength);
To check last element of MY_DATA, window must exceed the boundaries of data. How "isoutlier" function overcome this problem ? Does it decrease window size at the start and end of the data, or use some kind of padding.
Thank you all !
0 Comments
Accepted Answer
Shashank Gupta
on 13 Oct 2020
Hi,
Yes, there is change of window length at the edge cases, When you use "movmedian" methods to calulate the outliers, internally it uses the function movmedian to calculate the moving window median. And it does truncate the window length at the start and end. the algorithm depends upon the choice of Window length, if passed length is odd, the window is centered about the element in the current position. When length is even, the window is centered about the current and previous elements. The window size is automatically truncated at the endpoints when there are not enough elements to fill the window. When the window is truncated, the median is taken over only the elements that fill the window.
I hope this clear you confusion.
Cheers.
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!