Skip to content

Median Filter

Sambit Paul edited this page Aug 1, 2022 · 4 revisions
The examples provided here use a randomly generated signal.

Median Filter

median

The parameters for this filter are as follows:

  • Window Size ⇨ 7
Code
int windowSize = 7; //can be anything less than length of signal  
MedianFilter mf = new MedianFilter(windowSize); //signal is of type double[]  
double[] out = mf.filter(signal); //get the result after filtering  
Clone this wiki locally