BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IntegratorMCMiser< T > Class Template Reference

Template class to use Monte Carlo MISER integration of class member functions. More...

Classes

struct  CallBackHolder
 structure holding the object and possible extra parameters More...
 

Public Member Functions

 IntegratorMCMiser (const T *p_object, miser_integrand< T > p_member_function, size_t dim)
 to integrate p_member_function, which must belong to p_object
 
double integrate (double *min_array, double *max_array, void *params, size_t nbr_points)
 perform the actual integration over the ranges [min_array, max_array]
 

Detailed Description

template<class T>
class IntegratorMCMiser< T >

Template class to use Monte Carlo MISER integration of class member functions.

Wraps an integrator from GNU Scientific Library. Since this class holds a persistent workspace, we need at least one instance per thread. Standard usage for integration inside a class T:

  • Create a handle to an integrator: 'auto integrator = make_integrator_miser(this, mem_function, dimension)'
  • Call: 'integrator.integrate(lmin, lmax, data, nbr_points)'

Definition at line 34 of file IntegratorMCMiser.h.


The documentation for this class was generated from the following file: