ant
A2 ant: class-based analysis framework
ant::SavitzkyGolay Struct Reference

#include <SavitzkyGolay.h>

+ Collaboration diagram for ant::SavitzkyGolay:

Classes

struct  Exception
 
struct  gsl_matrix
 
struct  gsl_unique_ptr
 

Public Member Functions

 SavitzkyGolay (int window, int polynom_order)
 
 SavitzkyGolay (int window_left, int window_right, int polynom_order)
 
std::vector< double > Smooth (const std::vector< double > &y) const
 
template<typename GetY , typename SetY >
void Convolute (const GetY &getY, const SetY &setY, const interval< int > &range) const
 

Static Protected Member Functions

static gsl_unique_ptr< gsl_matrixMakeH (int n_l, int n_r, int m)
 
static double gsl_matrix_get (const gsl_matrix *m, const size_t i, const size_t j)
 

Protected Attributes

const int n_l
 
const int n_r
 
const int m
 
const gsl_unique_ptr< gsl_matrixh
 

Constructor & Destructor Documentation

◆ SavitzkyGolay() [1/2]

SavitzkyGolay::SavitzkyGolay ( int  window,
int  polynom_order 
)

◆ SavitzkyGolay() [2/2]

SavitzkyGolay::SavitzkyGolay ( int  window_left,
int  window_right,
int  polynom_order 
)

Member Function Documentation

◆ Convolute()

template<typename GetY , typename SetY >
void ant::SavitzkyGolay::Convolute ( const GetY &  getY,
const SetY &  setY,
const interval< int > &  range 
) const
inline

◆ gsl_matrix_get()

double SavitzkyGolay::gsl_matrix_get ( const gsl_matrix m,
const size_t  i,
const size_t  j 
)
staticprotected

◆ MakeH()

SavitzkyGolay::gsl_unique_ptr< SavitzkyGolay::gsl_matrix > SavitzkyGolay::MakeH ( int  n_l,
int  n_r,
int  m 
)
staticprotected

◆ Smooth()

vector< double > SavitzkyGolay::Smooth ( const std::vector< double > &  y) const

Member Data Documentation

◆ h

const gsl_unique_ptr<gsl_matrix> ant::SavitzkyGolay::h
protected

◆ m

const int ant::SavitzkyGolay::m
protected

◆ n_l

const int ant::SavitzkyGolay::n_l
protected

◆ n_r

const int ant::SavitzkyGolay::n_r
protected

The documentation for this struct was generated from the following files: