Calculate the value of the entropy for binary classification (i.e. Y= 0 or 1)

entropy(p)

Arguments

p

a vector containit the probabilities 'P[Y=0]' and 'P[Y=1]'

Value

the value of the entropy