Function to perform the simple nkde.
simple_nkde(graph, events, samples, bws, kernel_func, nodes, edges, div = "bw")
a dataframe with two columns. sum_k is the sum for each sample point of the kernel values. n is the number of events influencing each sample point
a graph object from igraph representing the network
a feature collection of points representing the events. It must be snapped on the network, and be nodes of the network. A column vertex_id must indicate for each event its corresponding node
a a feature collection of points representing the sampling points. The samples must be snapped on the network. A column edge_id must indicate for each sample on which edge it is snapped.
a vector indicating the kernel bandwidth (in meters) for each event
a function obtained with the function select_kernel
a a feature collection of points representing the nodes of the network
a a feature collection of linestrings representing the edges of the network
The divisor to use for the kernel. Must be "n" (the number of events within the radius around each sampling point), "bw" (the bandwidth) "none" (the simple sum).
#This is an internal function, no example provided
Run the code above in your browser using DataLab