this function is called by 'compute.spatial.kld' to calculate the kl-divergence between cell-weighted with shuffled weight vector and the ref (all cells, unweighted)
sample.spatial.kld(weight_vec, spatial.coords, n, ref)returns randomly sampled spatial klds for gene sets
weight_vec
spatial.coords
n
ref