| Library: | kernel |
| See also: | cosi epa qua tri trian uni |
| Quantlet: | gau | |
| Description: | gau computes the (multivariate) Gaussian kernel |
| Usage: | y = gau(x) | |
| Input: | ||
| x | n x p matrix (or array), user-defined data at which the kernel is to be computed | |
| Output: | ||
| y | n x 1 matrix (or array), the density estimate | |
library("kernel")
library("plot")
x = aseq(-3.5,75, 0.1) ; define x grid
y = gau(x) ; calculate the kernel
dat = setmask(x~y, "line", "blue")
plot(dat)
The kernel is displayed.