pan><span class="n">win_len_half</span><span class="p">:</span><span class="o">-</span><span class="n">win_len_half</span><span class="p">,</span> <span class="p">:]</span>

    <span class="k">return</span> <span class="n">x</span></div>


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