docs: public Pair<Double, INDArray> hBeta(INDArray d, double beta) {
          INDArray P = exp(d.neg().muli(beta));
          double sumP = P.sumNumber().doubleValue();
          double logSumP = FastMath.log(sumP);
          Double H = logSumP + ((beta * (d.mul(P).sumNumber().doubleValue())) / sumP);
          P.divi(sumP);
          return new Pair<>(H, P);
      }