(cls, D, axis=None)
return cls._entropy_normalized(D, axis=axis)
Compute the entropy of distribution `D`.

        Parameters
        ----------
        D : array
            Distribution.
        axis : optional int
            Axis of `D` along which to compute the entropy.
Compute the entropy of distribution `D`.
Compute the entropy of distribution D .
def _entropy(cls, D, axis=None):
        """
        Compute the entropy of distribution `D`.

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

        """
        D = cls._normalize(D, axis=axis)
        return cls._entropy_normalized(D, axis=axis)
def _entropy ( cls , D , axis = None ) : D = cls . _normalize ( D , axis = axis ) return cls . _entropy_normalized ( D , axis = axis )