Public Types | Public Member Functions | Private Member Functions | Private Attributes

Interpolation Class Reference

#include <Interpolation.h>

Inheritance diagram for Interpolation:
Filter

List of all members.

Public Types

enum  InterpolationMethod { Linear, Cubic, Akima }

Public Member Functions

 Interpolation (ApplicationWindow *parent, QwtPlotCurve *c, int m=0)
 Interpolation (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end, int m=0)
 Interpolation (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end, int m=0)
 Interpolation (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int start=0, int end=-1, int m=0)
 Interpolation (ApplicationWindow *parent, Graph *g, const QString &curveTitle, int m=0)
int method ()
void setMethod (int m)

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)
int sortedCurveData (QwtPlotCurve *c, double start, double end, double **x, double **y)
 Same as curveData, but sorts the points by their x value.

Private Attributes

int d_method
 the interpolation method

Member Enumeration Documentation

Enumerator:
Linear 
Cubic 
Akima 

Constructor & Destructor Documentation

Interpolation::Interpolation ( ApplicationWindow parent,
QwtPlotCurve *  c,
int  m = 0 
)
Interpolation::Interpolation ( ApplicationWindow parent,
QwtPlotCurve *  c,
double  start,
double  end,
int  m = 0 
)
Interpolation::Interpolation ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
int  m = 0 
)
Interpolation::Interpolation ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
double  start,
double  end,
int  m = 0 
)
Interpolation::Interpolation ( ApplicationWindow parent,
Table t,
const QString &  xCol,
const QString &  yCol,
int  start = 0,
int  end = -1,
int  m = 0 
)

Member Function Documentation

void Interpolation::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_from, d_method, Filter::d_n, Filter::d_points, Filter::d_to, Filter::d_x, Filter::d_y, and method().

void Interpolation::init ( int  m  )  [private]
int Interpolation::method (  )  [inline]

References d_method.

Referenced by calculateOutputData(), init(), and setMethod().

void Interpolation::setMethod ( int  m  ) 
int Interpolation::sortedCurveData ( QwtPlotCurve *  c,
double  start,
double  end,
double **  x,
double **  y 
) [private, virtual]

Same as curveData, but sorts the points by their x value.

Reimplemented from Filter.

References Filter::memoryErrorMessage().


Member Data Documentation

int Interpolation::d_method [private]

the interpolation method

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


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