public double calculateMatchHeight(List<Point> matchedPts) {
    double minY = Collections.min(matchedPts, Comparator.comparingDouble(Point::getY)).getOrigY();
    double maxY = Collections.max(matchedPts, Comparator.comparingDouble(Point::getY)).getOrigY();
    return maxY - minY;
  }
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