BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
To integrate a real function of a real variable. More...
Public Member Functions | |
RealIntegrator () | |
~RealIntegrator () | |
double | integrate (const std::function< double(double)> &f, double lmin, double lmax) |
Static Private Member Functions | |
static double | m_Cfunction (double x, void *p) |
Private Attributes | |
gsl_function | m_gsl_f |
gsl_integration_workspace * | m_workspace |
To integrate a real function of a real variable.
Definition at line 28 of file IntegratorGK.h.
RealIntegrator::RealIntegrator | ( | ) |
Definition at line 17 of file IntegratorGK.cpp.
RealIntegrator::~RealIntegrator | ( | ) |
Definition at line 22 of file IntegratorGK.cpp.
References m_workspace.
double RealIntegrator::integrate | ( | const std::function< double(double)> & | f, |
double | lmin, | ||
double | lmax | ||
) |
Definition at line 27 of file IntegratorGK.cpp.
References m_gsl_f, and m_workspace.
Referenced by MisesFisherGaussPeakShape::evaluate(), MisesGaussPeakShape::evaluate(), InterferenceFunction2DSuperLattice::evaluate(), FTDistribution2DCone::evaluate(), InterferenceFunction2DLattice::iff_without_dw(), InterferenceFunction2DParaCrystal::iff_without_dw(), InterferenceFunctionFinite2DLattice::iff_without_dw(), InterferenceFunctionHardDisk::iff_without_dw(), and ComplexIntegrator::integrate().
|
inlinestaticprivate |
Definition at line 35 of file IntegratorGK.h.
|
private |
Definition at line 39 of file IntegratorGK.h.
Referenced by integrate().
|
private |
Definition at line 40 of file IntegratorGK.h.
Referenced by ~RealIntegrator(), and integrate().