BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
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 23 of file Integrator.h.
RealIntegrator::RealIntegrator | ( | ) |
Definition at line 17 of file Integrator.cpp.
RealIntegrator::~RealIntegrator | ( | ) |
Definition at line 22 of file Integrator.cpp.
References m_workspace.
double RealIntegrator::integrate | ( | const std::function< double(double)> & | f, |
double | lmin, | ||
double | lmax | ||
) |
Definition at line 27 of file Integrator.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 31 of file Integrator.h.
References anonymous_namespace{InterferenceFunctionHardDisk.cpp}::p.
|
private |
Definition at line 35 of file Integrator.h.
Referenced by integrate().
|
private |
Definition at line 36 of file Integrator.h.
Referenced by integrate(), and ~RealIntegrator().