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

Description Usage Arguments Value

View source: R/tf_df_dist.R

Description

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

Usage

1
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 Oct. 30, 2019, 11:26 a.m.