docs: public float rNonsep(float[] y, int A) {
      float tmp, denominator, numerator;
  
      tmp = (float) Math.ceil(A / (float) 2.0);
      denominator = y.length * tmp * ((float) 1.0 + (float) 2.0 * A - (float) 2.0 * tmp) / A;
      numerator = (float) 0.0;
      for (int j = 0; j < y.length; j++) {
        numerator += y[j];
        for (int k = 0; k <= A - 2; k++) {
          numerator += Math.abs(y[j] - y[(j + k + 1) % y.length]);
        }
      }
  
      return correctTo01(numerator / denominator);
    }