TMB Documentation  v1.9.11
Public Member Functions | List of all members
TMBad::Integral< Integrand > Struct Template Reference

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.
 

Detailed Description

template<class Integrand>
struct TMBad::Integral< Integrand >

Interface to R's adaptive integrate routine.

Takes Integrand (functor) as template parameter. Integrand must be a template class where:

  1. Template parameter is the scalar type.
  2. Contains a 'typedef Type Scalar;'
  3. Has an evaluation operator.

Use this class if multiple integrals must be computed with different parameters. Otherwise use the 'integrate' function (see below).

Definition at line 1011 of file TMBad/integrate.hpp.

Constructor & Destructor Documentation

§ Integral()

template<class Integrand>
TMBad::Integral< Integrand >::Integral ( Integrand  f_,
Type  a_,
Type  b_,
control  c = control() 
)
inline

Constructor.

Parameters
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 1068 of file TMBad/integrate.hpp.


The documentation for this struct was generated from the following file:
License: GPL v2