#include <Interpolation.h>
Public Types | |
enum | InterpolationMethod { Linear, Cubic, Akima } |
Public Member Functions | |
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, double start, double end, 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 |
Interpolation::Interpolation | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle, | |||
int | m = 0 | |||
) |
References Filter::init(), and Filter::setDataFromCurve().
Interpolation::Interpolation | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle, | |||
double | start, | |||
double | end, | |||
int | m = 0 | |||
) |
References Filter::init(), and Filter::setDataFromCurve().
Interpolation::Interpolation | ( | ApplicationWindow * | parent, | |
Table * | t, | |||
const QString & | xCol, | |||
const QString & | yCol, | |||
int | start = 0 , |
|||
int | end = -1 , |
|||
int | m = 0 | |||
) |
References Filter::init(), and Filter::setDataFromTable().
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] |
References Filter::d_explanation, Filter::d_init_err, d_method, Filter::d_min_points, Filter::d_sort_data, and method().
int Interpolation::method | ( | ) | [inline] |
void Interpolation::setMethod | ( | int | m | ) |
References Filter::d_explanation, Filter::d_init_err, d_method, Filter::d_min_points, Filter::d_n, and method().
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().
int Interpolation::d_method [private] |