#include <Integrator1D.h>
Public Member Functions | |
virtual GReal_t | integrate (const GReal_t *x, const GReal_t *f, int start, int n) const =0 throw (IllegalArgumentException&) |
Integrates a function specified by a data set. | |
virtual string | toString () const =0 |
Returns a string representation. | |
Protected Member Functions | |
Integrator1D () | |
Constructs an integrator. | |
Integrator1D (const Integrator1D &) | |
Copy constructor. |
gridripper::math::Integrator1D::Integrator1D | ( | ) | [inline, protected] |
Constructs an integrator.
gridripper::math::Integrator1D::Integrator1D | ( | const Integrator1D & | ) | [inline, protected] |
Copy constructor.
virtual GReal_t gridripper::math::Integrator1D::integrate | ( | const GReal_t * | x, | |
const GReal_t * | f, | |||
int | start, | |||
int | n | |||
) | const throw (IllegalArgumentException&) [pure 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 |
Implemented in gridripper::math::TrapesoidalIntegrator1D, and gridripper::math::SimpsonIntegrator1D.
virtual string gridripper::math::Integrator1D::toString | ( | ) | const [pure virtual] |
Returns a string representation.
Implemented in gridripper::math::TrapesoidalIntegrator1D, and gridripper::math::SimpsonIntegrator1D.