epanechnikovKernel
Epanechnikov kernel
Contents
Syntax
y = epanechnikovKernel(u);
Description
epanechnikovKernel(u) returns the result of epanechnikov kernel function for u argument.
The result of a function depends on argument u and is described by following equations:
Input arguments
- u - Integer or a double value that is an argument of kernel function. Note, that u can be a vector of arguments. In this case function returns vector of results.
Examples
Draw graph presented epanechnikov kernel. The input argument is a vector of doubles on the interval ranging from -1.5 to 1.5. Input vector contains 100 equally spaced elements.
u = linspace(-1.5, 1.5); y = epanechnikovKernel(u); plot(u, y, '.-'); xlabel('u'); ylabel('y(u)'); title('Epanechnikov kernel');
See also
uniformKernel | triangularKernel | gaussianKernel | cosineKernel