esc_kernel_loo_tnkde: The worker function to calculate continuous TNKDE likelihood...

esc_kernel_loo_tnkdeR Documentation

The worker function to calculate continuous TNKDE likelihood cv

Description

The worker function to calculate continuous 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::vec with the network bandwidths to consider

bws_time

an arma::vec 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.