Learn R Programming

spNetwork (version 0.2.1)

adaptive_bw.mc: Adaptive bandwidth (multicore)

Description

Function to calculate Adaptive bandwidths according to Abramson<U+2019>s smoothing regimen with multicore support

Usage

adaptive_bw.mc(
  grid,
  events,
  lines,
  bw,
  trim_bw,
  method,
  kernel_name,
  max_depth,
  tol,
  digits,
  sparse,
  verbose
)

Arguments

grid

A spatial grid to split the data within

events

A spatialPointsDataFrame of the events points

lines

A SpatialLinesDataFrame representing the network

bw

The fixed kernel bandwidth

trim_bw

The maximum size of local bandwidths

method

The method to use when calculating the NKDE

kernel_name

The name of the kernel to use

max_depth

The maximum recursion depth

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

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab