discrepancy: Discrepancy for ordering words in plot_betas

View source: R/plot_alignment.R

discrepancyR Documentation

Discrepancy for ordering words in plot_betas

Description

Discrepancy for ordering words in plot_betas

Usage

discrepancy(p, lambda = 1e-07)

Arguments

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


lasy/alto documentation built on June 23, 2024, 6:45 a.m.