Xmipp
v3.23.11-Nereus
|
#include <integration.h>
Public Member Functions | |
virtual double | operator() () |
double | operator() (double min, double max, double precision=1.0e-7, int max_iter=20) |
Trapeze (doubleFunction &f, double &Var, double min, double max, double precision=1.0e-7, int max_iter=20) | |
double | Trap (int n) |
Public Member Functions inherited from doubleFunction | |
virtual | ~doubleFunction () |
Fast integration routine.
Interpolations are made with lines.
Example of use.
1) Define function to NumericalIntegration as class:
2) In the main code
Definition at line 96 of file integration.h.
|
inline |
Constructor.
Parameter: f Pointer to function to be integrated Parameter: var Integration variable Parameter: min Integration lower limit Parameter: max Integration upper limit Parameter: precision Maximum error allowed Parameter: max_iter Maximum number of iterations
Definition at line 135 of file integration.h.
|
virtual |
|
inline |
With parameters. Parameter: min Integration lower limit Parameter: max Integration upper limit Parameter: precision Maximum error allowed Parameter: max_iter Maximum number of iterations
Definition at line 116 of file integration.h.
double Trapeze::Trap | ( | int | n | ) |