">win_len</span><span class="p">,</span> <span class="mi">0</span><span class="p">]</span> <span class="o">+=</span> <span class="n">w</span><span class="o">**</span><span class="mi">2</span>

    <span class="n">ow</span><span class="p">[</span><span class="n">ow</span> <span class="o">&lt;</span> <span class="mi">10</span><span class="o">**-</span><span class="mi">3</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span>  <span class="c1"># avoid potential division by zero</span>