BALL
1.4.79
|
#include <BALL/MATHS/numericalIntegrator.h>
Public Member Functions | |
Constructors and destructor. | |
NumericalIntegrator () | |
Default constructor. More... | |
NumericalIntegrator (const NumericalIntegrator &nint) | |
Copy constructor. More... | |
virtual | ~NumericalIntegrator () |
Destructor. More... | |
Assignment | |
NumericalIntegrator & | operator= (const NumericalIntegrator &nint) |
Assignment operator. More... | |
Predicates | |
bool | operator== (const NumericalIntegrator &nint) const |
Equality operator. More... | |
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.
Definition at line 20 of file numericalIntegrator.h.
BALL_INLINE BALL::NumericalIntegrator< Function, DataType >::NumericalIntegrator | ( | ) |
Default constructor.
Definition at line 104 of file numericalIntegrator.h.
BALL_INLINE BALL::NumericalIntegrator< Function, DataType >::NumericalIntegrator | ( | const NumericalIntegrator< Function, DataType > & | nint | ) |
Copy constructor.
Definition at line 112 of file numericalIntegrator.h.
|
virtual |
Destructor.
Definition at line 120 of file numericalIntegrator.h.
|
inline |
Get the function to be integrated (const version).
Definition at line 71 of file numericalIntegrator.h.
|
inline |
Get the function to be integrated (const version).
Definition at line 76 of file numericalIntegrator.h.
BALL_INLINE DataType BALL::NumericalIntegrator< Function, DataType >::getValue | ( | const DataType & | x | ) | const |
Get the value of the function at position x
x | the position at which function_ is to be evaluated |
function_
at x Definition at line 155 of file numericalIntegrator.h.
BALL_INLINE DataType BALL::NumericalIntegrator< Function, DataType >::integrate | ( | const DataType & | from, |
const DataType & | to | ||
) | const |
Integrate the function numerically
from | lower limit of the integration |
to | upper limit of the integration |
Definition at line 163 of file numericalIntegrator.h.
BALL_INLINE NumericalIntegrator< Function, DataType > & BALL::NumericalIntegrator< Function, DataType >::operator= | ( | const NumericalIntegrator< Function, DataType > & | nint | ) |
Assignment operator.
Definition at line 129 of file numericalIntegrator.h.
BALL_INLINE bool BALL::NumericalIntegrator< Function, DataType >::operator== | ( | const NumericalIntegrator< Function, DataType > & | nint | ) | const |
Equality operator.
Definition at line 147 of file numericalIntegrator.h.
BALL_INLINE void BALL::NumericalIntegrator< Function, DataType >::setFunction | ( | const Function & | function | ) |
set the function to be integrated
the | function to be assigned |
Definition at line 138 of file numericalIntegrator.h.
|
protected |
Definition at line 97 of file numericalIntegrator.h.