'Compute the entropy of distribution `D`.
Parameters
D : array
Distribution.
axis : optional int
Axis of `D` along which to compute the entropy.'

@classmethod
def _entropy(cls, D, axis=None):

    D = cls._normalize(D, axis=axis)
    return cls._entropy_normalized(D, axis=axis)
