code: def H9(self):
          "Entropy."
          if not hasattr(self, '_H9'):
              self._H9 = -(self.P * np.log(self.P + self.eps)).sum(2).sum(1)
          return self._Hf H9(self):
          "Entropy."
          if not hasattr(self, '_H9'):
              self._H9 = -(self.P * np.log(self.P + self.eps)).sum(2).sum(1)
          return self._H9
docs: Entropy.