get_jsd_word_scores | R Documentation |
Calculates the contribution of the types in two systems to the Jensen-Shannon divergence (JSD) between those systems
get_jsd_word_scores( type2score_1, type2score_2, weight_1, weight_2, base, alpha )
type2score_1 |
|
type2score_2 |
|
weight_1 |
Relative weight of type2freq_1 when constructing the mixed distribution. Together with weight_2 should sum to 1. |
weight_2 |
Relative weight of type2freq_2 when constructing the mixed distribution. Together with weight_1 should sum to 1. |
base |
The base for the logarithm when computing entropy scores. |
alpha |
The parameter for the generalized Tsallis entropy. Setting 'alpha = 1' recovers the Shannon entropy. |
A data.frame containing the js scores
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.