public double getTimeliness() {
    return 1 - lateCnt * 1.0 / cnt;
  }
return number of points lie out of median +- k * MAD.
library-udf/src/main/java/org/apache/iotdb/library/dquality/util/TimeSeriesQuality.java