vSMC
vSMC: Scalable Monte Carlo
Protected Types | Protected Member Functions | List of all members
vsmc::NIntegrateBase< Derived > Class Template Reference

Numerical integration base dispatch class. More...

#include <vsmc/integrate/nintegrate_base.hpp>

Protected Types

typedef cxx11::function< double(double)> eval_type
 
typedef std::size_t size_type
 

Protected Member Functions

 NIntegrateBase ()
 
 NIntegrateBase (const NIntegrateBase< Derived > &)
 
virtual ~NIntegrateBase ()
 
double integrate_segment (double a, double b, const eval_type &eval)
 Integrate a segment on the grid. More...
 
double operator() (size_type N, const double *grid, const eval_type &eval)
 
NIntegrateBase< Derived > & operator= (const NIntegrateBase< Derived > &)
 

Detailed Description

template<typename Derived>
class vsmc::NIntegrateBase< Derived >

Numerical integration base dispatch class.

Definition at line 60 of file nintegrate_base.hpp.

Member Typedef Documentation

template<typename Derived>
typedef cxx11::function<double (double)> vsmc::NIntegrateBase< Derived >::eval_type
protected

Definition at line 65 of file nintegrate_base.hpp.

template<typename Derived>
typedef std::size_t vsmc::NIntegrateBase< Derived >::size_type
protected

Definition at line 64 of file nintegrate_base.hpp.

Constructor & Destructor Documentation

template<typename Derived>
vsmc::NIntegrateBase< Derived >::NIntegrateBase ( )
inlineprotected

Definition at line 67 of file nintegrate_base.hpp.

template<typename Derived>
vsmc::NIntegrateBase< Derived >::NIntegrateBase ( const NIntegrateBase< Derived > &  )
inlineprotected

Definition at line 68 of file nintegrate_base.hpp.

template<typename Derived>
virtual vsmc::NIntegrateBase< Derived >::~NIntegrateBase ( )
inlineprotectedvirtual

Definition at line 71 of file nintegrate_base.hpp.

Member Function Documentation

template<typename Derived>
double vsmc::NIntegrateBase< Derived >::integrate_segment ( double  a,
double  b,
const eval_type eval 
)
inlineprotected

Integrate a segment on the grid.

Parameters
aThe leftmost of the segment
bThe rightmost of the segment
evalThe functor used for evaluation

Definition at line 78 of file nintegrate_base.hpp.

template<typename Derived>
double vsmc::NIntegrateBase< Derived >::operator() ( size_type  N,
const double *  grid,
const eval_type eval 
)
inlineprotected

Definition at line 84 of file nintegrate_base.hpp.

template<typename Derived>
NIntegrateBase<Derived>& vsmc::NIntegrateBase< Derived >::operator= ( const NIntegrateBase< Derived > &  )
inlineprotected

Definition at line 69 of file nintegrate_base.hpp.