Double" class="extype">Double</span>]</span></span><p class="shortcomment cmt">Smooths the last k entries in <code>series</code>, for a smoother smart threshold.</p><div class="fullcomment"><div class="comment cmt"><p>Smooths the last k entries in <code>series</code>, for a smoother smart threshold.</p><p>This helps avoid our smart thresholds closely following jitter in the underlying time series.</p><p>For example, the sequence [1, 2, 2, 4, 6] with k=3 will yield the new sequence [1, 2, 4, 4, 4].
</p></div