Learn R Programming

spNetwork (version 0.2.1)

cosine_kernel_cpp: c++ cosine kernel

Description

c++ cosine kernel

Usage

cosine_kernel_cpp(d, bw)

Arguments

d

a vector of distances for which the density must be calculated

bw

a double representing the size of the kernel bandwidth