isoutlier Function, How window slides at edges.

3 次查看(过去 30 天)
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 !

采纳的回答

Shashank Gupta
Shashank Gupta 2020-10-13
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by