public boolean checkQueryLength(double queryLength) {
    if (this.queryLength == null) {
      return true;
    }
    double min = this.queryLength - this.queryLength * this.queryLengthTolerance;
    double max = this.queryLength + this.queryLength * this.queryLengthTolerance;
    return queryLength >= min && queryLength <= max;
  }
Given a list of tangents it divides the list of tangents in a list of sections. Each section
shares the same tangent signs (a section could be an increasing curve or a decreasing curve,
but not both)

@return Array of sections.
library-udf/src/main/java/org/apache/iotdb/library/match/PatternExecutor.java