   </div>

    <div id="ref-usage">
    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">ebnm_scale_npmle</span><span class="op">(</span></span>
<span>  <span class="va">x</span>,</span>
<span>  <span class="va">s</span>,</span>
<span>  min_K <span class="op">=</span> <span class="fl">3</span>,</span>
<span>  max_K <span class="op">=</span> <span class="fl">300</span>,</span>
<span>  KLdiv_target <span class="op">=</span> <span class="fl">1</span><span class="op">/</span><span 