calculate_entropy function

calculate entropy

calculate entropy

calculates the entropy of a specificity and sensitivity tuple considering the ratio

calculate_entropy(spec, sens, ratio = 1)

Arguments

  • spec: numeric, is the specificity, the true negative rate
  • sens: numeric, is the sensitivity, the true positive rate
  • ratio: numeric, is the ratio of positive and negative of the data

Returns

entropy of the tuple

Examples

calculate_entropy(1,0) calculate_entropy(0.5,0.6,0.7)

Author(s)

rothe

  • Maintainer: Ursula Neumann
  • License: GPL (>= 2)
  • Last published: 2018-05-08

Useful links