Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef INTEGRATION_H
00030 #define INTEGRATION_H
00031
00032 #include "Filter.h"
00033
00034 class Integration : public Filter
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 enum Integrand{DataSet, AnalyticalFunction};
00040
00041 Integration(ApplicationWindow *parent, Graph *g);
00042 Integration(ApplicationWindow *parent, QwtPlotCurve *c);
00043 Integration(ApplicationWindow *parent, QwtPlotCurve *c, double start, double end);
00044 Integration(ApplicationWindow *parent, Graph *g, const QString& curveTitle);
00045 Integration(ApplicationWindow *parent, Graph *g, const QString& curveTitle, double start, double end);
00046 Integration(ApplicationWindow *parent, Table *t, const QString& xCol, const QString& yCol, int start = 0, int end = -1);
00047 Integration(const QString& formula, const QString& var, ApplicationWindow *parent,
00048 Graph *g, double start, double end);
00049
00050 int method(){return d_method;};
00051 void setMethodOrder(int n);
00052
00053 double area(){return d_area;};
00054
00055 private:
00056 void init();
00057 QString logInfo();
00058
00059 void output();
00060
00061 double trapez();
00062 double trapezf(int n);
00064 int romberg();
00065
00067 int d_method;
00068
00070 double d_area;
00071
00073 Integrand d_integrand;
00075 QString d_formula;
00077 QString d_variable;
00078 };
00079
00080 #endif