docs: static public double EScafferF6NonCont(double[] x) {
  
      double sum = 0.0;
      double prevX, currX;
  
      currX = myXRound(x[0]);
      for (int i = 1; i < x.length; i++) {
        prevX = currX;
        currX = myXRound(x[i]);
        sum += ScafferF6(prevX, currX);
      }
      prevX = currX;
      currX = myXRound(x[0]);
      sum += ScafferF6(prevX, currX);
  
      return (sum);
    }