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 ()
 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)
 Integration (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end)
 Integration (ApplicationWindow *parent, Graph *g, const QString &curveTitle)
 Integration (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end)
 Integration (ApplicationWindow *parent, QwtPlotCurve *c)
 Integration (ApplicationWindow *parent, Graph *g)
int method ()
void setMethodOrder (int n)

Private Member Functions

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.
int romberg ()
 Returns the number of iterations used to calculate the area if d_integrand = AnalyticalFunction.
double trapez ()
double trapezf (int n)

Private Attributes

double d_area
 the value of the integral
QString d_formula
 Analytical function to be integrated.
Integrand d_integrand
 the type of the integrand
int d_method
 the integration method: 1 = trapezoidal, max = 5!
QString d_variable
 Variable name for the function to be integrated.

Member Enumeration Documentation

Enumerator:
DataSet 
AnalyticalFunction 

Constructor & Destructor Documentation

Integration::Integration ( ApplicationWindow parent,
Graph g 
)

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 
)
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 ApplicationWindow::integrate().

void Integration::init (  )  [private]

Reimplemented from Filter.

References d_integrand, Filter::d_max_iterations, d_method, Filter::d_sort_data, and DataSet.

Referenced by Integration().

QString Integration::logInfo (  )  [private, virtual]
int Integration::method (  )  [inline]

References d_method.

void Integration::output (  )  [private, virtual]
int Integration::romberg (  )  [private]

Returns the number of iterations used to calculate the area if d_integrand = AnalyticalFunction.

References d_area, Filter::d_max_iterations, d_method, Filter::d_tolerance, polint(), and trapezf().

Referenced by logInfo().

void Integration::setMethodOrder ( int  n  ) 

References d_method.

Referenced by IntDialog::accept().

double Integration::trapez (  )  [private]
double Integration::trapezf ( int  n  )  [private]

Member Data Documentation

double Integration::d_area [private]

the value of the integral

Referenced by area(), logInfo(), and romberg().

QString Integration::d_formula [private]

Analytical function to be integrated.

Referenced by Integration(), logInfo(), output(), and trapezf().

the type of the integrand

Referenced by init(), Integration(), logInfo(), and output().

int Integration::d_method [private]

the integration method: 1 = trapezoidal, max = 5!

Referenced by init(), Integration(), logInfo(), method(), romberg(), and setMethodOrder().

QString Integration::d_variable [private]

Variable name for the function to be integrated.

Referenced by Integration(), logInfo(), output(), and trapezf().


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

Generated by  doxygen 1.6.2