#include <BALL/MATHS/numericalIntegrator.h>
Public Member Functions | |
Constructors and destructor. | |
NumericalIntegrator () | |
Default constructor. | |
NumericalIntegrator (const NumericalIntegrator &nint) | |
Copy constructor. | |
virtual | ~NumericalIntegrator () |
Destructor. | |
Assignment | |
NumericalIntegrator & | operator= (const NumericalIntegrator &nint) |
Assignment operator. | |
Predicates | |
bool | operator== (const NumericalIntegrator &nint) const |
Equality operator. | |
Accessors | |
void | setFunction (const Function &function) |
const Function & | getFunction () const |
Function & | getFunction () |
DataType | getValue (const DataType &x) const |
DataType | integrate (const DataType &from, const DataType &to) const |
Protected Attributes | |
Function | function_ |
Numerical integrator class.
BALL_INLINE BALL::NumericalIntegrator< Function, DataType >::NumericalIntegrator | ( | ) | [inline] |
Default constructor.
BALL_INLINE BALL::NumericalIntegrator< Function, DataType >::NumericalIntegrator | ( | const NumericalIntegrator< Function, DataType > & | nint | ) | [inline] |
Copy constructor.
BALL_INLINE BALL::NumericalIntegrator< Function, DataType >::~NumericalIntegrator | ( | ) | [inline, virtual] |
Destructor.
Function& BALL::NumericalIntegrator< Function, DataType >::getFunction | ( | ) | [inline] |
Get the function to be integrated (const version).
const Function& BALL::NumericalIntegrator< Function, DataType >::getFunction | ( | ) | const [inline] |
Get the function to be integrated (const version).
BALL_INLINE DataType BALL::NumericalIntegrator< Function, DataType >::getValue | ( | const DataType & | x | ) | const [inline] |
Get the value of the function at position x
x | the position at which function is to be evaluated |
function
at x BALL_INLINE DataType BALL::NumericalIntegrator< Function, DataType >::integrate | ( | const DataType & | from, | |
const DataType & | to | |||
) | const [inline] |
Integrate the function numerically
from | lower limit of the integration | |
to | upper limit of the integration |
References BALL::NumericalIntegrator< Function, DataType >::function_.
BALL_INLINE NumericalIntegrator< Function, DataType > & BALL::NumericalIntegrator< Function, DataType >::operator= | ( | const NumericalIntegrator< Function, DataType > & | nint | ) | [inline] |
Assignment operator.
BALL_INLINE bool BALL::NumericalIntegrator< Function, DataType >::operator== | ( | const NumericalIntegrator< Function, DataType > & | nint | ) | const [inline] |
Equality operator.
BALL_INLINE void BALL::NumericalIntegrator< Function, DataType >::setFunction | ( | const Function & | function | ) | [inline] |
set the function to be integrated
the | function to be assigned |
References BALL::NumericalIntegrator< Function, DataType >::function_.
Function BALL::NumericalIntegrator< Function, DataType >::function_ [protected] |