Ksdensity
Definition:
y=ksdensity(x, vX, w) returns the kernel density at x for a given vector vX with a bandwidth w, where an optimal w can be determined by the estimation function kernelwidth.
/math-89931747d19faa5196bbca3dca0908e7.png)
where n is the size of vector vX, K is the kernel function,
Origin uses normal (Gaussian) kernel function,
,
and
is the ith element in vector vX.
Parameters:
(input, double)- The value to be evaluated for density
(input, vector)- Distributed samples used as kernel centers
(input, double)- Bandwidth used as kernel scale,
/math-c0a4fcddaf0d3bebb210d9caca5ee17d.png)
(output, double)- Kernel density
Reference
Wand, M.P. and Jones, M.C. (1995). Kernel Smoothing. Chapman & Hall, London.