adaptive_bw_tnkde.mc: Adaptive bandwidth for TNDE (multicore)

View source: R/adaptive_simultaneous_tnkde_bw.R

adaptive_bw_tnkde.mcR Documentation

Adaptive bandwidth for TNDE (multicore)

Description

Function to calculate Adaptive bandwidths according to Abramson’s smoothing regimen for TNKDE with a space-time interaction with multicore support.

Usage

adaptive_bw_tnkde.mc(
  grid,
  events_loc,
  events,
  lines,
  bw_net,
  bw_time,
  trim_bw_net,
  trim_bw_time,
  method,
  kernel_name,
  max_depth,
  div,
  tol,
  digits,
  sparse,
  verbose
)

Arguments

grid

A spatial grid to split the data within

events

A feature collection of points representing the events points

lines

A feature collection of linestrings representing the network

bw_net

The fixed kernel bandwidth for the network dimension

bw_time

The fixed kernel bandwidth for the time dimension

trim_bw_net

The maximum size of local bandiwidths for network dimension

trim_bw_time

The maximum size of local bandiwidths for time dimension

method

The method to use when calculating the NKDE

kernel_name

The name of the kernel to use

max_depth

The maximum recursion depth

div

The divisor to use for kernels

tol

A float indicating the spatial tolerance when snapping events on lines

digits

The number of digits to keep

sparse

A Boolean indicating if sparse matrix should be used

verbose

A Boolean indicating if update messages should be printed

Value

A vector with the local bandwidths

Examples

#This is an internal function, no example provided

spNetwork documentation built on Aug. 24, 2023, 5:10 p.m.