gaussian.kernel

0th

Percentile

Gaussian Kernel

Creates a Gaussian Kernel of specified size and sigma

Usage
gaussian.kernel(sigma = 2, n = 5)
Arguments
sigma

sigma (standard deviation) of kernel (defaults 2)

n

size of symmetrical kernel (defaults to 5x5)

Value

Symmetrical (NxN) matrix of a Gaussian distribution

Aliases
  • gaussian.kernel
Examples
# NOT RUN {
  par(mfrow=c(2,2))
  persp(gaussian.kernel(sigma=1, n=27), theta = 135, 
        phi = 30, col = "grey", ltheta = -120, shade = 0.6, 
        border=NA )
  persp(gaussian.kernel(sigma=2, n=27), theta = 135, phi = 30, 
        col = "grey", ltheta = -120, shade = 0.6, border=NA )		
  persp(gaussian.kernel(sigma=3, n=27), theta = 135, phi = 30, 
        col = "grey", ltheta = -120, shade = 0.6, border=NA )				
  persp(gaussian.kernel(sigma=4, n=27), theta = 135, phi = 30,
        col = "grey", ltheta = -120, shade = 0.6, border=NA )					
		
# }
Documentation reproduced from package spatialEco, version 1.3-2, License: GPL-3

Community examples

Looks like there are no examples yet.