X is the input signal to filter. The number of elements, n, in X must be greater than right rank. If the number of elements in X is less than or equal to right rank, the VI sets Filtered X to an empty array and returns an error.

left rank is the number of elements used to compute the median filter to the left side. left rank must be greater than or equal to 0. The default is 2.

right rank is the number of elements used to compute the median filter to the right side. If right rank is less than 0, the VI assumes right rank is equal to left rank. right rank must be less than X. The default is -1.

Filtered X is the output array of filtered samples. The size of this array is the same as the input array X.

The Median Filter VI obtains the elements of Filtered X using the following equation.

yi = Median(Ji) for i = 0, 1, 2, …, n – 1,

where Y represents the output sequence Filtered X, n is the number of elements in the input sequence X, Ji is a subset of the input sequence X centered about the ith element of X, and the indexed elements outside the range of X equal zero. The following equation describes Ji.