SmoothFilter Class Reference

#include <SmoothFilter.h>

Inheritance diagram for SmoothFilter:

Filter

List of all members.

Public Types

enum  SmoothMethod { SavitzkyGolay = 1, FFT = 2, Average = 3 }

Public Member Functions

int method ()
void setMethod (SmoothMethod m)
void setMethod (int m)
void setPolynomOrder (int order)
 Sets the polynomial order in the Savitky-Golay algorithm.
void setSmoothPoints (int points, int left_points=0)
 SmoothFilter (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end, int m=3)
 SmoothFilter (ApplicationWindow *parent, Graph *g, const QString &curveTitle, int m=3)

Private Member Functions

void calculateOutputData (double *x, double *y)
 Calculates the data for the output curve and store it in the X an Y vectors.
void init (int m)
void smoothAverage (double *x, double *y)
void smoothFFT (double *x, double *y)
void smoothSavGol (double *x, double *y)

Private Attributes

SmoothMethod d_method
 The smooth method.
int d_polynom_order
 Polynomial order in the Savitky-Golay algorithm (see Numerical Receipes in C for details).
int d_sav_gol_points
 The number of left adjacents points used by the Savitky-Golay algorithm.
int d_smooth_points
 The number of adjacents points used to smooth the data set.


Member Enumeration Documentation

enum SmoothFilter::SmoothMethod

Enumerator:
SavitzkyGolay 
FFT 
Average 


Constructor & Destructor Documentation

SmoothFilter::SmoothFilter ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
int  m = 3 
)

SmoothFilter::SmoothFilter ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
double  start,
double  end,
int  m = 3 
)


Member Function Documentation

void SmoothFilter::calculateOutputData ( double *  X,
double *  Y 
) [private, virtual]

Calculates the data for the output curve and store it in the X an Y vectors.

Reimplemented from Filter.

void SmoothFilter::init ( int  m  )  [private]

int SmoothFilter::method (  )  [inline]

void SmoothFilter::setMethod ( SmoothMethod  m  )  [inline]

void SmoothFilter::setMethod ( int  m  ) 

void SmoothFilter::setPolynomOrder ( int  order  ) 

Sets the polynomial order in the Savitky-Golay algorithm.

void SmoothFilter::setSmoothPoints ( int  points,
int  left_points = 0 
)

void SmoothFilter::smoothAverage ( double *  x,
double *  y 
) [private]

void SmoothFilter::smoothFFT ( double *  x,
double *  y 
) [private]

void SmoothFilter::smoothSavGol ( double *  x,
double *  y 
) [private]


Member Data Documentation

SmoothMethod SmoothFilter::d_method [private]

The smooth method.

int SmoothFilter::d_polynom_order [private]

Polynomial order in the Savitky-Golay algorithm (see Numerical Receipes in C for details).

int SmoothFilter::d_sav_gol_points [private]

The number of left adjacents points used by the Savitky-Golay algorithm.

int SmoothFilter::d_smooth_points [private]

The number of adjacents points used to smooth the data set.


The documentation for this class was generated from the following files:
Generated on Mon Oct 15 06:11:44 2007 for QtiPlot by  doxygen 1.5.3