kernels: Kernel functions

kernelsR Documentation

Kernel functions

Description

Kernel functions for creating kernel based weights with st_kernel_weights()

Usage

kernels

Format

An object of class list of length 5.

Details

Supported kernels are below.

Formulas come from Anselin & Morrison's notes.

  • uniform: K(z) = 1/2 for |z|<1

  • triangular: K(z) = (1-|z|) for |z| < 1

  • epanechnikov: K(z) = (3/4)(1-z^2) for |z| < 1

  • quartic: K(z) = (15/16)*(1-(z/threshold)^2^)2 for |z| < 1

  • gaussian: K(z) = (2pi)^{1/2} * exp(-z^2/2)

Value

a list of length 5 where each element is a kernel function.


JosiahParry/sfdep documentation built on Sept. 7, 2024, 6:15 a.m.