prepare_data: Prior data preparation
Description
A simple function to prepare data before the NKDE calculation.
Usage
prepare_data(samples, lines, events, w, digits, tol, agg)
Value
the data prepared for the rest of the operations
Arguments
- samples
A feature collection of points representing the samples points
- lines
A feature collection of Linestrings representing the network
- events
A feature collection of points representing the events points
- w
A numeric vector representing the weight of the events
- digits
The number of digits to keep
- tol
A float indicating the spatial tolerance when snapping events on
lines
- agg
A double indicating if the points must be aggregated within a distance.
if NULL, then the points are aggregated by rounding the coordinates.
Examples
Run this code#This is an internal function, no example provided
Run the code above in your browser using DataLab