fit_kde: Fit Kernel Density Estimator

Description Usage Arguments Value

View source: R/Spatial_pre_processing.R

Description

Fits Kernel density estimates using bkde2D

Usage

1
fit_kde(data, h, grid.size)

Arguments

data

Data frame containing columns Longitude and Latitude.

h

Bandwidth of KDE.

grid.size

Number of rows/columns of grid on which density estimate is returned.

Value

Kernel density estimate in the form:

x1

Longitudes of grid

x2

Latitudes of grid

fhat

Matrix of density estimates at grid points


jakespiteri/chicagocrime documentation built on Jan. 24, 2020, 1:26 a.m.