powered by
c++ cosine kernel
cosine_kernel_cpp(d, bw)
a vector of distances for which the density must be calculated
a double representing the size of the kernel bandwidth