docs: def information(self, type):
          """Computes the information content of the specified type: -log_e(p(X))"""
          if not self.base:
              return -math.log(self._dist[type])
          else:
              return -math.log(self._dist[type], self.base)