#include <NumericalIntegration.h>
Public Member Functions | |
template<typename F > | |
double | operator() (const F &f, double min, double max) const |
TrapezoidIntegrator () | |
TrapezoidIntegrator (unsigned int samples) | |
Private Attributes | |
unsigned int | samples_ |
Definition at line 29 of file NumericalIntegration.h.
funct::TrapezoidIntegrator::TrapezoidIntegrator | ( | ) | [inline] |
Definition at line 31 of file NumericalIntegration.h.
: samples_(0) { }
funct::TrapezoidIntegrator::TrapezoidIntegrator | ( | unsigned int | samples | ) | [inline, explicit] |
Definition at line 32 of file NumericalIntegration.h.
: samples_(samples) { }
double funct::TrapezoidIntegrator::operator() | ( | const F & | f, |
double | min, | ||
double | max | ||
) | const [inline] |
Definition at line 34 of file NumericalIntegration.h.
References samples_, and funct::trapezoid_integral().
{ return trapezoid_integral(f, min, max, samples_); }
unsigned int funct::TrapezoidIntegrator::samples_ [private] |
Definition at line 38 of file NumericalIntegration.h.
Referenced by operator()().