ess_kernel: Worker for simple NKDE algorithm

Description Usage Arguments Examples

View source: R/kernel_functions.R

Description

The worker function to perform the simple nkde.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ess_kernel(
  graph,
  y,
  bw,
  kernel_func,
  samples,
  nodes,
  edges,
  sample_tree,
  edges_tree
)

Arguments

graph

a graph object from igraph representing the network

y

the index of the actual event

bw

a float indicating the kernel bandwidth (in meters)

kernel_func

a function obtained with the function select_kernel

samples

a SpatialPointsDataFrame representing the sampling points. The samples must be snapped on the network. A column edge_id must indicate for each sample on which edge it is snapped.

nodes

a SpatialPointsDataFrame representing the nodes of the network

edges

a SpatialLinesDataFrame representing the edges of the network

sample_tree

a quadtree object, the spatial index of the samples

edges_tree

a quadtree object, the spatial index of the edges

Examples

1
#This is an internal function, no example provided

spNetwork documentation built on Oct. 30, 2021, 5:06 p.m.