23#ifndef _SAVITZKYGOLAYSMOOTHER_HPP_
24#define _SAVITZKYGOLAYSMOOTHER_HPP_
29#include <boost/shared_ptr.hpp>
44 virtual void smooth(
const std::vector<double>&
x,
const std::vector<double>&
y,
45 std::vector<double>& xSmoothed, std::vector<double>& ySmoothed);
50 virtual void smooth_copy(std::vector<double>&
x, std::vector<double>&
y);
KernelTraitsBase< Kernel >::space_type::abscissa_type x
KernelTraitsBase< Kernel >::space_type::ordinate_type y
virtual void smooth(const std::vector< double > &x, const std::vector< double > &y, std::vector< double > &xSmoothed, std::vector< double > &ySmoothed)
smooth y values to existing vectors using Savitzky-Golay algorithm; preconditions:
boost::shared_ptr< Impl > impl_
virtual void smooth_copy(std::vector< double > &x, std::vector< double > &y)
smooth y values and copy back to the input vectors using Savitzky-Golay algorithm; preconditions:
SavitzkyGolaySmoother(int polynomialOrder, int windowSize)