n class="n">x_perc_c</span><span class="p">[:,</span> <span class="mi">0</span><span class="p">]</span>

    <span class="k">return</span> <span class="n">x_harm</span><span class="p">,</span> <span class="n">x_perc</span></div>


<div class="viewcode-block" id="median_filter"><a class="viewcode-back" href="../../index_utils.html#libtsm.utils.median_filter">[docs]</a><span class="k">def</span> <span class="nf">median_filter</span><span class="p">(</span><span class="n">X</span><span class="p">,</span> <span