Calculating the border correction factor for both time and network bandwidths
bw_tnkde_corr_factor(
net_bws,
time_bws,
diggle_correction,
study_area,
events,
events_loc,
lines,
method,
kernel_name,
tol,
digits,
max_depth,
sparse
)
A list of two elements, first the network correction factors, then the time correction factors.
A vector of network bandwidths
A vector of time bandwidths
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.
A feature collection of points representing the events
A feature collection of points representing the unique location of events
A feature collection of linestrings representing the underlying lines of the network
The name of the NKDE to use
The name of the kernel to use
float indicating the minimum distance between the events and the lines' extremities when adding the point to the network. When points are closer, they are added at the extremity of the lines.
An integer, the number of digits to keep for the spatial coordinates
The maximal depth for continuous or discontinuous NKDE
A Boolean indicating if sparse or regular matrices should be used by the Rcpp functions. These matrices are used to store edge indices between two nodes in a graph. Regular matrices are faster, but require more memory, in particular with multiprocessing. Sparse matrices are slower (a bit), but require much less memory.
# no example provided, this is an internal function
Run the code above in your browser using DataLab