A check function for bandwidth selection methods raising an error if a parameter is not valid
bw_checks(
check,
lines,
samples,
events,
kernel_name,
method,
bws_net = NULL,
bws_time = NULL,
arr_bws_net = NULL,
arr_bws_time = NULL,
adaptive = FALSE,
trim_net_bws = NULL,
trim_time_bws = NULL,
diggle_correction = FALSE,
study_area = NULL
)
A boolean indicating if the geometries must be checked
A feature collection of linestrings representing the underlying network
A feature collection of points representing the sample location
a feature collection of points representing the events
The name of the kernel to use
The name of the NKDE to use
An ordered numeric vector with all the network bandwidths
An ordered numeric vector with all the time bandwidths
An array with all the local netowrk bandwidths precalculated (for each event, and at each possible combinaison of network and temporal bandwidths). The dimensions must be c(length(net_bws), length(time_bws), nrow(events)))
An array with all the local time bandwidths precalculated (for each event, and at each possible combinaison of network and temporal bandwidths). The dimensions must be c(length(net_bws), length(time_bws), nrow(events)))
A boolean indicating if local bandwidths must be calculated
A numeric vector with the maximum local network bandwidth. If local bandwidths have higher values, they will be replaced by the corresponding value in this vector.
A numeric vector with the maximum local time bandwidth. If local bandwidths have higher values, they will be replaced by the corresponding value in this vector.
A Boolean indicating if the correction factor for edge effect must be used.
A feature collection of polygons representing the limits of the study area.
# no example provided, this is an internal function
Run the code above in your browser using DataLab