get_D_KL_highD: Calculates the Kullback-Leibler divergence between...

Description Usage Arguments Value

View source: R/haystack_highD.R

Description

Calculates the Kullback-Leibler divergence between distributions for the high-dimensional version of haystack().

Usage

1
get_D_KL_highD(classes, density.contributions, reference.prob, pseudo = 0)

Arguments

classes

A logical vector. Values are T is the gene is expressed in a cell, F is not.

density.contributions

A matrix of density contributions of each cell (rows) to each center point (columns).

reference.prob

A reference distribution to calculate the divergence against.

pseudo

A pseudocount, used to avoid log(0) problems.

Value

A numerical value, the Kullback-Leibler divergence


singleCellHaystack documentation built on March 28, 2021, 9:12 a.m.