public double getValidity() {
    return 1 - (valueCnt + variationCnt + speedCnt + speedchangeCnt) * 0.25 / cnt;
  }
return number of points lie out of median +- k * MAD.
library-udf/src/main/java/org/apache/iotdb/library/dquality/util/TimeSeriesQuality.java