The main function to calculate continuous NKDE (with ARMADILO and sparse matrix)
The main function to calculate continuous NKDE (with ARMADILO and integer matrix)
continuous_nkde_cpp_arma_sparse(
neighbour_list,
events,
weights,
samples,
bws,
kernel_name,
nodes,
line_list,
max_depth,
verbose
)continuous_nkde_cpp_arma(
neighbour_list,
events,
weights,
samples,
bws,
kernel_name,
nodes,
line_list,
max_depth,
verbose
)
a list of the neighbours of each node
a numeric vector of the node id of each event
a numeric vector of the weight of each event
a DataFrame of the samples (with spatial coordinates and belonging edge)
the kernel bandwidths for each event
the name of the kernel to use
a DataFrame representing the nodes of the graph (with spatial coordinates)
a DataFrame representing the lines of the graph
the maximum recursion depth (after which recursion is stopped)
a boolean indicating if the function must print its progress
a DataFrame with two columns : the kernel values (sum_k) and the number of events for each sample (n)
a DataFrame with two columns : the kernel values (sum_k) and the number of events for each sample (n)