code: private static boolean isNonTrivialMatch(double[] series, int i, int j, Integer motifSize,
        double range, double znormThreshold) {
  
      if (Math.abs(i - j) < motifSize) {
        return false;
      }
  
      Double dd = eaDistance(series, i, j, motifSize, range, znormThreshold);
  
      if (Double.isFinite(dd)) {
        return true;
      }
  
      return false;
    }
docs: Checks for the overlap and the range-configured distance.
  
  @param series the series to use.
  @param i the position of subseries a.
  @param j the position of subseries b.
  @param motifSize the motif length.
  @param range the range value.
  @param znormThreshold z-normalization threshold.
  @return true if all is cool, false if overlaps or above the range value.