LSST Applications  22.0.1,22.0.1+01bcf6a671,22.0.1+046ee49490,22.0.1+05c7de27da,22.0.1+0c6914dbf6,22.0.1+1220d50b50,22.0.1+12fd109e95,22.0.1+1a1dd69893,22.0.1+1c910dc348,22.0.1+1ef34551f5,22.0.1+30170c3d08,22.0.1+39153823fd,22.0.1+611137eacc,22.0.1+771eb1e3e8,22.0.1+94e66cc9ed,22.0.1+9a075d06e2,22.0.1+a5ff6e246e,22.0.1+a7db719c1a,22.0.1+ba0d97e778,22.0.1+bfe1ee9056,22.0.1+c4e1e0358a,22.0.1+cc34b8281e,22.0.1+d640e2c0fa,22.0.1+d72a2e677a,22.0.1+d9a6b571bd,22.0.1+e485e9761b,22.0.1+ebe8d3385e
LSST Data Management Base Package
Public Member Functions | List of all members
lsst::afw::math::details::FunctionWrapper< BinaryFunctionT > Class Template Reference

Wrap an integrand in a call to a 1D integrator: romberg() More...

#include <Integrate.h>

Inheritance diagram for lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >:
std::unary_function< BinaryFunctionT::second_argument_type, BinaryFunctionT::result_type >

Public Member Functions

 FunctionWrapper (BinaryFunctionT func, typename BinaryFunctionT::first_argument_type const x1, typename BinaryFunctionT::first_argument_type const x2, double const eps=1.0e-6)
 
BinaryFunctionT::result_type operator() (typename BinaryFunctionT::second_argument_type const y) const
 

Detailed Description

template<typename BinaryFunctionT>
class lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >

Wrap an integrand in a call to a 1D integrator: romberg()

When romberg2D() is called, it wraps the integrand it was given in a FunctionWrapper functor. This wrapper calls romberg() on the integrand to get a 1D (along the x-coord, for constant y) result . romberg2D() then calls romberg() with the FunctionWrapper functor as an integrand.

Definition at line 908 of file Integrate.h.

Constructor & Destructor Documentation

◆ FunctionWrapper()

template<typename BinaryFunctionT >
lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >::FunctionWrapper ( BinaryFunctionT  func,
typename BinaryFunctionT::first_argument_type const  x1,
typename BinaryFunctionT::first_argument_type const  x2,
double const  eps = 1.0e-6 
)
inline

Definition at line 911 of file Integrate.h.

913  : _func(func), _x1(x1), _x2(x2), _eps(eps) {}

Member Function Documentation

◆ operator()()

template<typename BinaryFunctionT >
BinaryFunctionT::result_type lsst::afw::math::details::FunctionWrapper< BinaryFunctionT >::operator() ( typename BinaryFunctionT::second_argument_type const  y) const
inline

Definition at line 914 of file Integrate.h.

915  {
916  return integrate(std::bind2nd(_func, y), _x1, _x2, _eps);
917  }
int y
Definition: SpanSet.cc:49
UnaryFunctionT::result_type integrate(UnaryFunctionT func, typename UnaryFunctionT::argument_type const a, typename UnaryFunctionT::argument_type const b, double eps=1.0e-6)
The 1D integrator.
Definition: Integrate.h:886

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