TMB Documentation
v1.9.11
|
Interface to R's adaptive integrate routine. More...
#include <integrate.hpp>
Public Member Functions | |
Integral (Integrand f_, Type a_, Type b_, control c=control()) | |
Constructor. More... | |
Integrand & | integrand () |
Return reference to integrand so the user can change parameters. | |
Interface to R's adaptive integrate routine.
Takes Integrand (functor) as template parameter. Integrand must be a template class where:
Use this class if multiple integrals must be computed with different parameters. Otherwise use the 'integrate' function (see below).
Definition at line 76 of file tiny_ad/integrate/integrate.hpp.
|
inline |
Constructor.
f_ | Functor integrand |
a_ | Lower integration limit. Negative infinity allowed. |
b_ | Upper integration limit. Positive infinity allowed. |
c_ | Control parameters for accuracy. |
Definition at line 118 of file tiny_ad/integrate/integrate.hpp.