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 (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, Table *t, const QString &xCol, const QString &yCol, int start=0, int end=-1, int m=3)
 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

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 
)

SmoothFilter::SmoothFilter ( ApplicationWindow parent,
Table t,
const QString &  xCol,
const QString &  yCol,
int  start = 0,
int  end = -1,
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.

References Filter::d_explanation, d_method, Filter::d_points, d_smooth_points, Filter::d_x, Filter::d_y, smoothAverage(), smoothFFT(), and smoothSavGol().

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

int SmoothFilter::method (  )  [inline]

References d_method.

void SmoothFilter::setMethod ( int  m  ) 

References Filter::d_init_err, and d_method.

Referenced by init().

void SmoothFilter::setPolynomOrder ( int  order  ) 

Sets the polynomial order in the Savitky-Golay algorithm.

References Filter::d_init_err, d_method, d_polynom_order, d_sav_gol_points, d_smooth_points, and SavitzkyGolay.

Referenced by SmoothCurveDialog::smooth().

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

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

References Filter::d_n, and d_smooth_points.

Referenced by calculateOutputData().

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

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


Member Data Documentation

The smooth method.

Referenced by calculateOutputData(), method(), setMethod(), and setPolynomOrder().

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

Referenced by init(), setPolynomOrder(), setSmoothPoints(), and smoothSavGol().

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

Referenced by init(), setPolynomOrder(), setSmoothPoints(), and smoothSavGol().

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

Referenced by calculateOutputData(), init(), setPolynomOrder(), setSmoothPoints(), smoothAverage(), smoothFFT(), and smoothSavGol().


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

Generated on Tue Jun 17 08:36:17 2008 for QtiPlot by  doxygen 1.5.5