Evaluate kernel for CDF
K=ksdensity_kernelcdf(u) K=ksdensity_kernelcdf(u,akernel)
a npoints-by-1 matrix of doubles, the points to evaluate the kernel
a 1-by-1 matrix of strings, the type of kernel (default="normal"). Available values are "normal", "biweight", "triangle", "epanechnikov".
a npoints-by-1 matrix of doubles, the kernel value
Evaluate the kernel for the CDF at point u.
// Plot available kernels scf(); // subplot(2,2,1) title("Normal") u=linspace(-3,3,100); K=ksdensity_kernelcdf(u,"normal"); plot(u,K,"r-") // subplot(2,2,2) title("Epanechnikov") u=linspace(-1.5,1.5,100); K=ksdensity_kernelcdf(u,"epanechnikov"); plot(u,K,"r-") // subplot(2,2,3) title("Biweight") u=linspace(-1.5,1.5,100); K=ksdensity_kernelcdf(u,"biweight"); plot(u,K,"r-") // subplot(2,2,4) title("Triangle") u=linspace(-1.5,1.5,101); K=ksdensity_kernelcdf(u,"triangle"); plot(u,K,"r-") // // Plot available kernels scf(); xlabel("u"); ylabel("K(u)"); u=linspace(-1.5,1.5,101); K=ksdensity_kernelcdf(u,"normal"); plot(u,K,"m-") K=ksdensity_kernelcdf(u,"epanechnikov"); plot(u,K,"b--") K=ksdensity_kernelcdf(u,"biweight"); plot(u,K,"r-.") K=ksdensity_kernelcdf(u,"triangle"); plot(u,K,"g-") legend(["Normal","Epanechnikov","Biweight","Triangle"]); | ![]() | ![]() |
http://en.wikipedia.org/wiki/Kernel_(statistics)#Kernel_functions_in_common_use