class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">cosine_kernel_cpp</span><span class="op">(</span><span class="va">d</span>, <span class="va">bw</span><span class="op">)</span></span></code></pre></div>
    </div>

    <div id="arguments">
    <h2>Arguments</h2>
    <dl><dt>d</dt>
<dd><p>a vector of distances for which the density must be calculated</p></dd>


<dt>bw</dt>
<dd><p>a double representing the size of the kernel bandwidth</p></dd>

</dl></div>

  </div>
  <div class="col-