public static double log2(double x) {
    return Math.log(x) / Math.log(2);
  }
Log of base 2.

@param x a real number.
@return the value <code>log2(x)</code>.
library-udf/src/main/java/org/apache/iotdb/library/frequency/util/DWTUtil.java