numeric
|
#include <SavitzkyGolayFilter.hpp>
Public Member Functions | |
SavitzkyGolayFilter (std::vector< double > &result, int ls_point, int half_width, int poly_order, int derivative=0, double step=1) | |
~SavitzkyGolayFilter () | |
Compute coefficients of the Savitzky-Golay filter.
Based on: General Least-Squares smoothing and differentiation by the Convolution (Savitzky-Golay) method. By Peter A. Gory (1989)
numeric::SavitzkyGolayFilter::SavitzkyGolayFilter | ( | std::vector< double > & | result, |
int | ls_point, | ||
int | half_width, | ||
int | poly_order, | ||
int | derivative = 0 , |
||
double | step = 1 |
||
) |
Compute the coefficients of Savitzky-Golay filter
result,computed | coefficients |
ls_point,Least-Square | point, between [-half_width, half_width] |
half_width. | Number of points used 2*half_width+1 |
poly_order,polynomial | order |
derivative. | 0 = smooth |
step. | Necessary in case of derivatives, when the coefficients need to be divided by the step. |
numeric::SavitzkyGolayFilter::~SavitzkyGolayFilter | ( | ) |