Description of the distance-based kernel function
kernel(mat, rho)
the value of the kernel
a distance-based matrix
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.