lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
lsst::afw::geom::LinearFunctor Class Reference

Concrete implementation of Functor subclass for testing. More...

#include <Functor.h>

Inheritance diagram for lsst::afw::geom::LinearFunctor:
lsst::afw::geom::Functor

Public Member Functions

 LinearFunctor (double slope, double intercept)
 
 ~LinearFunctor ()
 
virtual std::shared_ptr< Functor > clone () const
 
virtual double operator() (double x) const
 
virtual double derivative (double x) const
 
- Public Member Functions inherited from lsst::afw::geom::Functor
 Functor (std::string const &name)
 
virtual ~Functor ()
 
virtual double inverse (double y, double tol=1e-10, unsigned int maxiter=1000) const
 

Detailed Description

Concrete implementation of Functor subclass for testing.

Implements a line: y = slope*x + intercept.

Definition at line 90 of file Functor.h.

Constructor & Destructor Documentation

lsst::afw::geom::LinearFunctor::LinearFunctor ( double  slope,
double  intercept 
)
lsst::afw::geom::LinearFunctor::~LinearFunctor ( )
inline

Definition at line 94 of file Functor.h.

Member Function Documentation

virtual std::shared_ptr<Functor> lsst::afw::geom::LinearFunctor::clone ( ) const
virtual
virtual double lsst::afw::geom::LinearFunctor::derivative ( double  x) const
virtual
Returns
df(x)/dx evaluated at x. This is used in the inverse(...) member function.

Implements lsst::afw::geom::Functor.

virtual double lsst::afw::geom::LinearFunctor::operator() ( double  x) const
virtual
Returns
y = f(x)

Implements lsst::afw::geom::Functor.


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