powered by
Function to calculate Adaptive bandwidths according to Abramson<U+2019>s smoothing regimen.
adaptive_bw( grid, events, lines, bw, trim_bw, method, kernel_name, max_depth, tol, digits, sparse, verbose )
A spatial grid to split the data within
A spatialPointsDataFrame of the events points
A SpatialLinesDataFrame representing the network
The fixed kernel bandwidth
The maximum size of local bandiwidths
The method to use when calculating the NKDE
The name of the kernel to use
The maximum recursion depth
A float indicating the spatial tolerance when snapping events on lines
The number of digits to keep
A Boolean indicating if sparse matrix should be used
A Boolean indicating if update messages should be printed
A vector with the local bandwidths
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab