BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
To integrate a real function of a real variable.
Definition at line 28 of file IntegratorGK.h.
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 |
RealIntegrator::RealIntegrator | ( | ) |
Definition at line 17 of file IntegratorGK.cpp.
RealIntegrator::~RealIntegrator | ( | ) |
Definition at line 23 of file IntegratorGK.cpp.
References m_workspace.
double RealIntegrator::integrate | ( | const std::function< double(double)> & | f, |
double | lmin, | ||
double | lmax | ||
) |
Definition at line 28 of file IntegratorGK.cpp.
References m_gsl_f, and m_workspace.
Referenced by Interference2DLattice::iff_without_dw(), Interference2DParaCrystal::iff_without_dw(), InterferenceFinite2DLattice::iff_without_dw(), InterferenceHardDisk::iff_without_dw(), ComplexIntegrator::integrate(), MisesFisherGaussPeakShape::peakDistribution(), MisesGaussPeakShape::peakDistribution(), Profile2DCone::standardizedFT2D(), and Interference2DSuperLattice::structureFactor().
|
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().