QtiPlot 0.9.8.2
|
#include <Integration.h>
Public Types | |
enum | Integrand { DataSet, AnalyticalFunction } |
Public Member Functions | |
double | area () |
QString | formula () |
Integration (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end) | |
Integration (ApplicationWindow *parent, QwtPlotCurve *c) | |
Integration (ApplicationWindow *parent, Graph *g, const QString &curveTitle) | |
Integration (const QString &formula, const QString &var, ApplicationWindow *parent, Graph *g, double start, double end) | |
Integration (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int start=0, int end=-1, bool sort=false) | |
Integration (ApplicationWindow *parent, Graph *g=0) | |
Integration (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end) | |
void | setWorkspaceSize (int size) |
QString | variable () |
Private Member Functions | |
double | gslIntegration () |
void | init () |
QString | logInfo () |
Output string added to the log pannel of the application. | |
void | output () |
Performs the data analysis and takes care of the output. | |
double | trapez () |
Private Attributes | |
double | d_area |
the value of the integral | |
double | d_error |
the value of the estimated error in GSL integration | |
QString | d_formula |
Analytical function to be integrated. | |
Integrand | d_integrand |
the type of the integrand | |
QString | d_variable |
Variable name for the function to be integrated. | |
int | d_workspace_size |
the value of the workspace size in GSL integration |
Integration::Integration | ( | ApplicationWindow * | parent, |
Graph * | g = 0 |
||
) |
References init().
Integration::Integration | ( | ApplicationWindow * | parent, |
QwtPlotCurve * | c | ||
) |
References init(), and Filter::setDataFromCurve().
Integration::Integration | ( | ApplicationWindow * | parent, |
QwtPlotCurve * | c, | ||
double | start, | ||
double | end | ||
) |
References init(), and Filter::setDataFromCurve().
Integration::Integration | ( | ApplicationWindow * | parent, |
Graph * | g, | ||
const QString & | curveTitle | ||
) |
References init(), and Filter::setDataFromCurve().
Integration::Integration | ( | ApplicationWindow * | parent, |
Graph * | g, | ||
const QString & | curveTitle, | ||
double | start, | ||
double | end | ||
) |
References init(), and Filter::setDataFromCurve().
Integration::Integration | ( | ApplicationWindow * | parent, |
Table * | t, | ||
const QString & | xCol, | ||
const QString & | yCol, | ||
int | start = 0 , |
||
int | end = -1 , |
||
bool | sort = false |
||
) |
References Filter::d_sort_data, init(), and Filter::setDataFromTable().
Integration::Integration | ( | const QString & | formula, |
const QString & | var, | ||
ApplicationWindow * | parent, | ||
Graph * | g, | ||
double | start, | ||
double | end | ||
) |
References AnalyticalFunction, Filter::d_from, Filter::d_init_err, d_integrand, Filter::d_n, Filter::d_sort_data, Filter::d_to, and d_workspace_size.
double Integration::area | ( | ) | [inline] |
References d_area.
Referenced by IntegrationDialog::integrateTable().
QString Integration::formula | ( | ) | [inline] |
References d_formula.
double Integration::gslIntegration | ( | ) | [private] |
References d_area, d_error, Filter::d_from, Filter::d_init_err, Filter::d_to, Filter::d_tolerance, d_workspace_size, and evalFunction().
Referenced by logInfo().
void Integration::init | ( | ) | [private] |
Reimplemented from Filter.
References d_integrand, Filter::d_sort_data, and DataSet.
Referenced by Integration().
QString Integration::logInfo | ( | ) | [private, virtual] |
Output string added to the log pannel of the application.
Reimplemented from Filter.
References AnalyticalFunction, d_area, Filter::d_curve, ApplicationWindow::d_decimal_digits, d_error, d_formula, Filter::d_from, Filter::d_graph, Filter::d_init_err, d_integrand, Filter::d_n, Filter::d_to, Filter::d_tolerance, d_variable, Filter::d_x, Filter::d_y, Filter::d_y_col_name, DataSet, gslIntegration(), Graph::multiLayer(), and trapez().
void Integration::output | ( | ) | [private, virtual] |
Performs the data analysis and takes care of the output.
Reimplemented from Filter.
References Graph::addFunction(), AnalyticalFunction, PatternBox::brushStyle(), d_formula, Filter::d_from, Filter::d_graphics_display, Filter::d_init_err, d_integrand, Filter::d_output_graph, Filter::d_points, Filter::d_to, d_variable, ApplicationWindow::defaultCurveAlpha, ApplicationWindow::defaultCurveBrush, and FunctionCurve::Normal.
void Integration::setWorkspaceSize | ( | int | size | ) | [inline] |
References d_workspace_size.
Referenced by IntDialog::accept().
double Integration::trapez | ( | ) | [private] |
References Filter::addResultCurve(), Filter::d_n, Filter::d_points, Filter::d_x, and Filter::d_y.
Referenced by logInfo().
QString Integration::variable | ( | ) | [inline] |
References d_variable.
double Integration::d_area [private] |
the value of the integral
Referenced by area(), gslIntegration(), and logInfo().
double Integration::d_error [private] |
the value of the estimated error in GSL integration
Referenced by gslIntegration(), and logInfo().
QString Integration::d_formula [private] |
Integrand Integration::d_integrand [private] |
the type of the integrand
Referenced by init(), Integration(), logInfo(), and output().
QString Integration::d_variable [private] |
Variable name for the function to be integrated.
Referenced by logInfo(), output(), and variable().
int Integration::d_workspace_size [private] |
the value of the workspace size in GSL integration
Referenced by gslIntegration(), Integration(), and setWorkspaceSize().