View source: R/plot_alignment.R
discrepancy | R Documentation |
Discrepancy for ordering words in plot_betas
discrepancy(p, lambda = 1e-07)
p |
the probability vector on which to compute the discrepancy measure. |
lambda |
The degree of Laplace smoothing to apply to the topics. This prevents the divergence from exploding. Defaults to 1e-7. This implements equation (4) from https://doi.org/10.1371/journal.pgen.1006599 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.