#include <OneDIntegrator.H>
Public Member Functions | |
OneDIntegrator () | |
Default constructor. | |
virtual | ~OneDIntegrator () |
Default destructor. | |
Real | integral (const RefCountedPtr< BaseOneDFunc > &a_func, const Real &a_xstart, const Real &a_xend, const int &a_num_bits) const |
OneDIntegrator::OneDIntegrator | ( | ) | [inline] |
Default constructor.
virtual OneDIntegrator::~OneDIntegrator | ( | ) | [inline, virtual] |
Default destructor.
Real OneDIntegrator::integral | ( | const RefCountedPtr< BaseOneDFunc > & | a_func, | |
const Real & | a_xstart, | |||
const Real & | a_xend, | |||
const int & | a_num_bits | |||
) | const |
integrate the function over the region dividing the by dividing up the region of integration into bits of fixed size = size/num_bits (midpoint rule)