continuousWorker_sparse: The worker function to calculate continuous NKDE (with...

continuousWorker_sparseR Documentation

The worker function to calculate continuous NKDE (with ARMADILLO and sparse matrix)

Description

The worker function to calculate continuous NKDE (with ARMADILLO and sparse matrix)

Arguments

kernel_func

a cpp pointer function (selected with the kernel name)

samples_k

a numeric vector of the actual kernel values, updates at each recursion

neighbour_list

a List, giving for each node an IntegerVector with its neighbours

edge_mat

matrix, to find the id of each edge given two neighbours.

v

the actual node to consider for the recursion (int)

bw

the kernel bandwidth

line_weights

a vector with the length of the edges

samples_edgeid

a vector associating each sample to an edge

samples_coords

a matrix with the X and Y coordinates of the samples

nodes_coords

a matrix with the X and Y coordinates of the nodes

depth

the actual recursion depth

max_depth

the maximum recursion depth

Value

a vector with the kernel values calculated for each samples from the first node given


JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.