isoutlier Function, How window slides at edges.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Burak Ahmet Celebi
el 5 de Oct. de 2020
Comentada: Burak Ahmet Celebi
el 13 de Oct. de 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 comentarios
Respuesta aceptada
Shashank Gupta
el 13 de Oct. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!