#ifndef __SGSMOOTH_HPP__ #define __SGSMOOTH_HPP__ #include // savitzky golay smoothing. std::vector sg_smooth(const std::vector& v, const int w, const int deg); //! numerical derivative based on savitzky golay smoothing. std::vector sg_derivative(const std::vector& v, const int w, const int deg, const double h = 1.0); #endif // __SGSMOOTH_HPP__