vSMC
vSMC: Scalable Monte Carlo
Public Types | Static Public Member Functions | List of all members
vsmc::NIntegrateNewtonCotes< Degree > Class Template Reference

Numerical integration with the (closed) Newton-Cotes formulae. More...

#include <vsmc/integrate/nintegrate_newton_cotes.hpp>

Public Types

typedef NIntegrateBase< NIntegrateNewtonCotes< Degree > >::eval_type eval_type
 
typedef NIntegrateBase< NIntegrateNewtonCotes< Degree > >::size_type size_type
 

Static Public Member Functions

static double integrate_segment (double a, double b, const eval_type &eval)
 
static constexpr unsigned max_degree ()
 

Additional Inherited Members

- Protected Types inherited from vsmc::NIntegrateBase< NIntegrateNewtonCotes< Degree > >
typedef cxx11::function< double(double)> eval_type
 
typedef std::size_t size_type
 
- Protected Member Functions inherited from vsmc::NIntegrateBase< NIntegrateNewtonCotes< Degree > >
 NIntegrateBase ()
 
 NIntegrateBase (const NIntegrateBase< NIntegrateNewtonCotes< Degree > > &)
 
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< NIntegrateNewtonCotes< Degree > > & operator= (const NIntegrateBase< NIntegrateNewtonCotes< Degree > > &)
 

Detailed Description

template<unsigned Degree>
class vsmc::NIntegrateNewtonCotes< Degree >

Numerical integration with the (closed) Newton-Cotes formulae.

Definition at line 212 of file nintegrate_newton_cotes.hpp.

Member Typedef Documentation

template<unsigned Degree>
typedef NIntegrateBase<NIntegrateNewtonCotes<Degree> >:: eval_type vsmc::NIntegrateNewtonCotes< Degree >::eval_type

Definition at line 220 of file nintegrate_newton_cotes.hpp.

template<unsigned Degree>
typedef NIntegrateBase<NIntegrateNewtonCotes<Degree> >:: size_type vsmc::NIntegrateNewtonCotes< Degree >::size_type

Definition at line 218 of file nintegrate_newton_cotes.hpp.

Member Function Documentation

template<unsigned Degree>
static double vsmc::NIntegrateNewtonCotes< Degree >::integrate_segment ( double  a,
double  b,
const eval_type eval 
)
inlinestatic

Definition at line 222 of file nintegrate_newton_cotes.hpp.

template<unsigned Degree>
static constexpr unsigned vsmc::NIntegrateNewtonCotes< Degree >::max_degree ( )
inlinestatic

Definition at line 236 of file nintegrate_newton_cotes.hpp.