#include <Integrator1D.h>
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. |
gridripper::math::TrapesoidalIntegrator1D::TrapesoidalIntegrator1D | ( | ) | [inline] |
Constructs an integrator.
gridripper::math::TrapesoidalIntegrator1D::TrapesoidalIntegrator1D | ( | const TrapesoidalIntegrator1D & | other | ) | [inline] |
Copy constructor.
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.
x | the array of x coordinates | |
f | the array of values | |
start | the starting index | |
n | the number of points |
Implements gridripper::math::Integrator1D.
string gridripper::math::TrapesoidalIntegrator1D::toString | ( | ) | const [inline, virtual] |