Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gaussian.kernel

Gaussian Kernel


Description

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

Author(s)

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Examples

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 )

spatialEco

Spatial Analysis and Modelling Utilities

v1.3-6
GPL-3
Authors
Jeffrey S. Evans [aut, cre], Melanie A. Murphy [ctb], Karthik Ram [ctb]
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.