#include <Interpolation.h>
Public Types | |
enum | InterpolationMethod { Linear, Cubic, Akima } |
Public Member Functions | |
Interpolation (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end, int m=0) | |
Interpolation (ApplicationWindow *parent, Graph *g, const QString &curveTitle, int m=0) | |
int | method () |
void | setMethod (InterpolationMethod m) |
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 |
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 | |||
) |
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.
void Interpolation::init | ( | int | m | ) | [private] |
int Interpolation::method | ( | ) | [inline] |
void Interpolation::setMethod | ( | InterpolationMethod | m | ) | [inline] |
void Interpolation::setMethod | ( | int | m | ) |
int Interpolation::sortedCurveData | ( | QwtPlotCurve * | c, | |
double | start, | |||
double | end, | |||
double ** | x, | |||
double ** | y | |||
) | [private, virtual] |
int Interpolation::d_method [private] |
the interpolation method