esd_kernel_loo_tnkde_adpt: The worker function to calculate discontinuous TNKDE...

esd_kernel_loo_tnkde_adptR Documentation

The worker function to calculate discontinuous TNKDE likelihood cv (adaptive case)

Description

The worker function to calculate discontinuous TNKDE likelihood cv (INTERNAL)

Arguments

kernel_func

a cpp pointer function (selected with the kernel name)

edge_mat

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

events

a NumericVector indicating the nodes in the graph being events

time_events

a NumericVector indicating the timestamp of each event

neighbour_list

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

v

the actual node to consider (int)

v_time

the time of v (double)

bws_net

an arma::mat with the network bandwidths to consider

bws_time

an arma::mat with the time bandwidths to consider

line_weights

a vector with the length of the edges

depth

the actual recursion depth

max_depth

the maximum recursion depth

Value

a cube with the impact of the event v on each other event for each pair of bandwidths (cube(bws_net, bws_time, events))


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