X.entropy function

The entropy measure