pan class="o">*</span><span class="n">b</span>
    <span class="c1"># the +0.000001 is a 0.00001% cutoff guarentee; If there is no noise in the system,</span>
    <span class="c1"># LMS will best fit to 0.</span>
    <span class="c1"># gets maximum frequency from |FFT|</span>
    <span class="n">fmax</span> <span class="o">=</span> <span class="n">MaximumFrequency</span><span class="p">(</span><span class="n">xf</span><span class="p">,</span> <span class="n">yf</span><span class="p">,</span> <span class="n"