Skip to content

Median Filter

Sambit Paul edited this page Dec 2, 2023 · 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);
double[] out = mf.filter(signal); //get the result after filtering  
Clone this wiki locally