sKDE_without_c: Computes an estimation of the density using Kernel Density...

Description Usage Arguments Value Examples

Description

Computes an estimation of the density using Kernel Density estimator, without correcting for fontier effects.

Usage

1
sKDE_without_c(U, polygon, optimal = TRUE, h = 0.1)

Arguments

U

data points.

polygon

polygon on which points lie.

optimal

if TRUE, uses Hpi() to select the optimal bandwidth.

h

only if optimal=FALSE, scalar bandwidth.

Value

Returns a list whose elements are: > X: x coordinates at wich estimate is evaluated, > Y: y coordinates at wich estimate is evaluated, > Z: density estimates, > ZNA: density estimates with NA values for points outside the polygon, > H: bandwidth matrix, > W: vector of weights.

Examples

1
2
3
data(acci)
smoothed_fin_nc <- sKDE_without_c(U = acci$finistere$points,
    polygon = acci$finistere$polygon, optimal=TRUE)

ripleyCorr/kdeborder documentation built on May 26, 2019, 1:33 a.m.