tf_df_dist_diff: Helper function to calculate the Hellinger distance between...

View source: R/tf_df_dist.R

tf_df_dist_diffR Documentation

Helper function to calculate the Hellinger distance between the token frequencies and document frequencies for a specific topic's top N tokens

Description

Helper function to calculate the Hellinger distance between the token frequencies and document frequencies for a specific topic's top N tokens

Usage

tf_df_dist_diff(dtm_data, top_terms)

Arguments

dtm_data

a document-term matrix of token counts coercible to simple_triplet_matrix

top_terms

- a character vector of the top N tokens

Value

a single value representing the Hellinger distance


topicdoc documentation built on July 17, 2022, 1:05 a.m.