A function that computes the information theoretic gain.
gain(a, b)
a
b
Returns the gain.
Staal A. Vinterbo staal@dsg.harvard.edu
gainr
a <- round(runif(10)) b <- round(runif(10)) gain(a,b)