Apply a gaussian kernel to observations. For internal use.
Usage
EDK(x, bandwidth, power = 2)
Arguments
x
the data on which the kernel will be applied. numeric or numeric vector.
bandwidth
the bandwidth of the kernel. numeric.
power
the power of the kernel. numeric.
Value
A numeric.
Details
FUNCTION:
This function corresponds to the following kernel :
$$\frac{1}{\sqrt[power]{2*pi*bandwidth^2}} *\exp(-(x/bandwidth)^power)$$
Setting power to 2 lead to use a gaussian kernel.