Skip to content

Commit

Permalink
Fixed sign issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellRebo committed Nov 25, 2013
1 parent e1e4599 commit d0e6fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ittk.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def mutual_information(X, Y):

#Variation of information
def information_variation(X, Y):
return -entropy(X) - entropy(Y) + 2*mutual_information(X, Y)
return entropy(X) + entropy(Y) - 2*mutual_information(X, Y)

def kldiv(X, Y):
p = array( X )
Expand Down

0 comments on commit d0e6fb3

Please sign in to comment.