#include <Integrator1D.h>
Public Member Functions | |
SimpsonIntegrator1D () | |
Constructs an integrator. | |
SimpsonIntegrator1D (const SimpsonIntegrator1D &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::SimpsonIntegrator1D::SimpsonIntegrator1D | ( | ) | [inline] |
Constructs an integrator.
gridripper::math::SimpsonIntegrator1D::SimpsonIntegrator1D | ( | const SimpsonIntegrator1D & | other | ) | [inline] |
Copy constructor.
GReal_t gridripper::math::SimpsonIntegrator1D::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::SimpsonIntegrator1D::toString | ( | ) | const [inline, virtual] |