Learn R Programming

spNetwork (version 0.4.3.8)

bw_checks: Check function for parameters in bandwidth selection methods

Description

A check function for bandwidth selection methods raising an error if a parameter is not valid

Usage

bw_checks(
  check,
  lines,
  samples,
  events,
  kernel_name,
  method,
  bw_net_range = NULL,
  bw_time_range = NULL,
  bw_net_step = NULL,
  bw_time_step = NULL,
  diggle_correction = FALSE,
  study_area = NULL
)

Arguments

check

A boolean indicating if the geometries must be checked

lines

A feature collection of linestrings representing the underlying network

samples

A feature collection of points representing the sample location

events

a feature collection of points representing the events

kernel_name

The name of the kernel to use

method

The name of the NKDE to use

bw_net_range

The range for the network bandwidth to consider, given as a numeric vector of two values: c(bandwidth_min, bandwidth_max)

bw_time_range

The range for the time bandwidth to consider, given as a numeric vector of two values: c(bandwidth_min, bandwidth_max)

bw_net_step

The step between each network bandwidth to calculate, given as a float

bw_time_step

The step between each time bandwidth to calculate, given as a float

diggle_correction

A Boolean indicating if the correction factor for edge effect must be used.

study_area

A feature collection of polygons representing the limits of the study area.

Examples

Run this code
# no example provided, this is an internal function

Run the code above in your browser using DataLab