Learn R Programming

spNetwork (version 0.2.1)

esc_kernel_loo: The recursive function to calculate continuous NKDE likelihood cv

Description

The recursive function to calculate continuous NKDE likelihood cv

Arguments

kernel_func

a cpp pointer function (selected with the kernel name)

samples_k

a numeric vector of the actual kernel values, updated 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)

v1

the connected node to consider for the recursion (int)

l1

the edge connecting v and v1 (int)

d

the actual distance traveled before the recursion

alpha

the actual alpha value before the recursion

bw

the kernel bandwidth

line_weights

a vector with the length of the edges

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