get_D_KL_continuous_highD.Rd
Calculates the Kullback-Leibler divergence between distributions for the high-dimensional continuous version of haystack.
get_D_KL_continuous_highD(
weights,
density.contributions,
reference.prob,
pseudo = 0
)
A numerical vector with expression values of a gene.
A matrix of density contributions of each cell (rows) to each center point (columns).
A reference distribution to calculate the divergence against.
A pseudocount, used to avoid log(0) problems.
A numerical value, the Kullback-Leibler divergence