Implementation of adaptive-degree polynomial filter for data smoothing. Based on a paper:
Małgorzata Jakubowska and Władysław W. Kubiak. "Adaptive-degree polynomial filter for voltammetric signals". Analytica chimica acta 512.2 (2004): 241-250.
and implementation by Jianwen Luo.