get_jsd_word_scores: Get JS Divergence Scores

View source: R/entropy.R

get_jsd_word_scoresR Documentation

Get JS Divergence Scores

Description

Calculates the contribution of the types in two systems to the Jensen-Shannon divergence (JSD) between those systems

Usage

get_jsd_word_scores(
  type2score_1,
  type2score_2,
  weight_1,
  weight_2,
  base,
  alpha
)

Arguments

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.

Value

A data.frame containing the js scores


pverspeelt/shifterator documentation built on Oct. 7, 2022, 3:37 a.m.