gridripper::math::TrapesoidalIntegrator1D Class Reference

Trapesoidal integration of non-unigrid one-argument functions. More...

#include <Integrator1D.h>

Inheritance diagram for gridripper::math::TrapesoidalIntegrator1D:

gridripper::math::Integrator1D

List of all members.

Public Member Functions

 TrapesoidalIntegrator1D ()
 Constructs an integrator.
 TrapesoidalIntegrator1D (const TrapesoidalIntegrator1D &other)
 Copy constructor.
GReal_t integrate (const GReal_t *x, const GReal_t *f, int start, int n) const throw (IllegalArgumentException&)
 Integrates a function specified by a data set.
string toString () const
 Returns a string representation.


Detailed Description

Trapesoidal integration of non-unigrid one-argument functions.

Version:
0.5, 03/01/2008
Author:
Andras Laszlo

Constructor & Destructor Documentation

gridripper::math::TrapesoidalIntegrator1D::TrapesoidalIntegrator1D (  )  [inline]

Constructs an integrator.

gridripper::math::TrapesoidalIntegrator1D::TrapesoidalIntegrator1D ( const TrapesoidalIntegrator1D other  )  [inline]

Copy constructor.


Member Function Documentation

GReal_t gridripper::math::TrapesoidalIntegrator1D::integrate ( const GReal_t x,
const GReal_t f,
int  start,
int  n 
) const throw (IllegalArgumentException&) [virtual]

Integrates a function specified by a data set.

Parameters:
x the array of x coordinates
f the array of values
start the starting index
n the number of points
Returns:
the integral

Implements gridripper::math::Integrator1D.

string gridripper::math::TrapesoidalIntegrator1D::toString (  )  const [inline, virtual]

Returns a string representation.

Implements gridripper::math::Integrator1D.


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

Generated on Wed Jun 17 18:46:55 2009 for GridRipper by  doxygen 1.5.6