n">T</span><span class="p">,</span> <span class="n">spectral_axis</span>


<span class="k">def</span> <span class="nf">_kernel</span><span class="p">(</span><span class="n">intensity_data</span><span class="p">,</span> <span class="n">spectral_axis</span><span class="p">,</span> <span class="n">kernel_type</span><span class="p">,</span> <span class="n">kernel_size</span><span class="p">):</span>
    <span class="k">return</span> <span class="n">np</span><span class="o">.</span><span class="n">apply_along_ax