View source: R/gaussian.kernel.R
gaussian.kernel | R Documentation |
Creates a Gaussian Kernel of specified size and sigma
gaussian.kernel(sigma = 2, s = 5)
sigma |
sigma (standard deviation) of kernel (defaults 2) |
s |
scale defining the number of rows and columns for kernel (default 5) |
Symmetrical (NxN) matrix of a Gaussian distribution
Jeffrey S. Evans <jeffrey_evans@tnc.org>
opar <- par()
par(mfrow=c(2,2))
persp(gaussian.kernel(sigma=1, s=27), theta = 135,
phi = 30, col = "grey", ltheta = -120, shade = 0.6,
border=NA )
persp(gaussian.kernel(sigma=2, s=27), theta = 135, phi = 30,
col = "grey", ltheta = -120, shade = 0.6, border=NA )
persp(gaussian.kernel(sigma=3, s=27), theta = 135, phi = 30,
col = "grey", ltheta = -120, shade = 0.6, border=NA )
persp(gaussian.kernel(sigma=4, s=27), theta = 135, phi = 30,
col = "grey", ltheta = -120, shade = 0.6, border=NA )
par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.