QtiPlot  0.9.8.2
Public Types | Public Member Functions | Private Member Functions | Private Attributes
Integration Class Reference

#include <Integration.h>

Inheritance diagram for Integration:
Filter

List of all members.

Public Types

enum  Integrand { DataSet, AnalyticalFunction }

Public Member Functions

double area ()
QString formula ()
 Integration (ApplicationWindow *parent, Graph *g=0)
 Integration (ApplicationWindow *parent, QwtPlotCurve *c)
 Integration (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end)
 Integration (ApplicationWindow *parent, Graph *g, const QString &curveTitle)
 Integration (ApplicationWindow *parent, Graph *g, const QString &curveTitle, 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 (const QString &formula, const QString &var, ApplicationWindow *parent, Graph *g, 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

Member Enumeration Documentation

Enumerator:
DataSet 
AnalyticalFunction 

Constructor & Destructor Documentation

Integration::Integration ( ApplicationWindow parent,
Graph g = 0 
)

References init().

Integration::Integration ( ApplicationWindow parent,
QwtPlotCurve *  c 
)
Integration::Integration ( ApplicationWindow parent,
QwtPlotCurve *  c,
double  start,
double  end 
)
Integration::Integration ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle 
)
Integration::Integration ( ApplicationWindow parent,
Graph g,
const QString &  curveTitle,
double  start,
double  end 
)
Integration::Integration ( ApplicationWindow parent,
Table t,
const QString &  xCol,
const QString &  yCol,
int  start = 0,
int  end = -1,
bool  sort = false 
)
Integration::Integration ( const QString &  formula,
const QString &  var,
ApplicationWindow parent,
Graph g,
double  start,
double  end 
)

Member Function Documentation

double Integration::area ( ) [inline]

References d_area.

Referenced by IntegrationDialog::integrateTable().

QString Integration::formula ( ) [inline]

References d_formula.

double Integration::gslIntegration ( ) [private]
void Integration::init ( ) [private]

Reimplemented from Filter.

References d_integrand, Filter::d_sort_data, and DataSet.

Referenced by Integration().

QString Integration::logInfo ( ) [private, virtual]
void Integration::output ( ) [private, virtual]
void Integration::setWorkspaceSize ( int  size) [inline]

References d_workspace_size.

Referenced by IntDialog::accept().

double Integration::trapez ( ) [private]
QString Integration::variable ( ) [inline]

References d_variable.


Member Data Documentation

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]

Analytical function to be integrated.

Referenced by formula(), logInfo(), and output().

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().

the value of the workspace size in GSL integration

Referenced by gslIntegration(), Integration(), and setWorkspaceSize().


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