docs: public double getAverageOccupation() {
      calculateOccupied();
      double result;
  
      if (occupiedHypercubes() == 0) {
        result = 0.0;
      } else {
        double sum = 0.0;
  
        for (int value : occupied) {
          sum += hypercubes[value];
        }
  
        result = sum / occupiedHypercubes();
      }
      return result;
    }