mbsim  4.0.0
MBSim Kernel
MBSim::GaussLegendreQuadrature< Ret > Class Template Reference

Public Member Functions

 GaussLegendreQuadrature (fmatvec::Function< Ret(double)> *function, int dimension, int subIntegrals=1, int Nb=3)
 
const Ret integrate (double l, double u)
 function to integrate a MBSim-Function numerically using the gaussian quadrature More...
 
void setSubIntegrals (int subInts_)
 

Public Attributes

fmatvec::Function< Ret(double)> * function
 function to integrate
 
int dim
 dimension of the result
 
size_t subIntegrals
 number of integrals the original one should be split to
 
size_t Nb
 number of gauss points that should be used
 

Protected Member Functions

const Ret integrateSingle (double l, double u)
 

Member Function Documentation

◆ integrate()

template<class Ret >
const Ret MBSim::GaussLegendreQuadrature< Ret >::integrate ( double  l,
double  u 
)
inline

function to integrate a MBSim-Function numerically using the gaussian quadrature

Parameters
function1the function that should be integrated
lthe lower bound of the integral
uthe upper bound of the integral

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