ADMB Documentation
-a65f1c97
|
Interface to R's adaptive integrate routine. More...
#include <integrate.hpp>
Classes | |
struct | vectorized_integrand |
Public Types | |
typedef Integrand::Scalar | Type |
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. More... | |
Type | operator() () |
void | setAccuracy (double epsrel_=1e-4, double epsabs_=1e-4) |
void | setBounds (Type a_, Type b_) |
void | setWorkspace (int subdivisions=100) |
Public Attributes | |
Type | a |
Type | abserr |
Type | b |
Type | bound |
Type | epsabs |
Type | epsrel |
struct gauss_kronrod::Integral::vectorized_integrand | fn |
int | ier |
int | inf |
vector< int > | iwork |
int | last |
int | lenw |
int | limit |
int | neval |
Type | result |
vector< Type > | work |
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 71 of file integrate.hpp.
typedef Integrand::Scalar gauss_kronrod::Integral< Integrand >::Type |
Definition at line 72 of file 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 113 of file integrate.hpp.
|
inline |
Return reference to integrand so the user can change parameters.
Definition at line 82 of file integrate.hpp.
|
inline |
Definition at line 120 of file integrate.hpp.
|
inline |
Definition at line 88 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::Integral().
|
inline |
Definition at line 99 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::Integral().
|
inline |
Definition at line 92 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::Integral().
Type gauss_kronrod::Integral< Integrand >::a |
Definition at line 97 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setBounds().
Type gauss_kronrod::Integral< Integrand >::abserr |
Definition at line 84 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
Type gauss_kronrod::Integral< Integrand >::b |
Definition at line 97 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setBounds().
Type gauss_kronrod::Integral< Integrand >::bound |
Definition at line 97 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setBounds().
Type gauss_kronrod::Integral< Integrand >::epsabs |
Definition at line 84 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
Type gauss_kronrod::Integral< Integrand >::epsrel |
Definition at line 84 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
struct gauss_kronrod::Integral::vectorized_integrand gauss_kronrod::Integral< Integrand >::fn |
int gauss_kronrod::Integral< Integrand >::ier |
Definition at line 85 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
int gauss_kronrod::Integral< Integrand >::inf |
Definition at line 98 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setBounds().
vector<int> gauss_kronrod::Integral< Integrand >::iwork |
Definition at line 86 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setWorkspace().
int gauss_kronrod::Integral< Integrand >::last |
Definition at line 85 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
int gauss_kronrod::Integral< Integrand >::lenw |
Definition at line 85 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setWorkspace().
int gauss_kronrod::Integral< Integrand >::limit |
Definition at line 85 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setWorkspace().
int gauss_kronrod::Integral< Integrand >::neval |
Definition at line 85 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
Type gauss_kronrod::Integral< Integrand >::result |
Definition at line 84 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setAccuracy().
vector<Type> gauss_kronrod::Integral< Integrand >::work |
Definition at line 87 of file integrate.hpp.
Referenced by gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::operator()(), and gauss_kronrod::Integral< gauss_kronrod::mvIntegral::evaluator >::setWorkspace().
Generated on Wed Sep 7 2022 00:01:35 for ADMB Documentation by 1.8.5 |