kernel {CommKern} | R Documentation |
Description of the distance-based kernel function
kernel(mat, rho)
mat |
a distance-based matrix |
rho |
a bandwidth/scaling parameter whose optimal value is solved for within the larger score function |
This is an ancillary function that is passed into the score function, used for calculating the distance-based kernel.
The function returns an m x m matrix (where m is the number of networks) to be used as input for the kernel function.
the value of the kernel