Concrete implementation of Functor subclass for testing.
More...
#include <Functor.h>
Concrete implementation of Functor subclass for testing.
Implements a line: y = slope*x + intercept.
Definition at line 90 of file Functor.h.
| lsst::afw::geom::LinearFunctor::LinearFunctor |
( |
double |
slope, |
|
|
double |
intercept |
|
) |
| |
| lsst::afw::geom::LinearFunctor::~LinearFunctor |
( |
| ) |
|
|
inline |
| virtual std::shared_ptr<Functor> lsst::afw::geom::LinearFunctor::clone |
( |
| ) |
const |
|
virtual |
| virtual double lsst::afw::geom::LinearFunctor::derivative |
( |
double |
x | ) |
const |
|
virtual |
| virtual double lsst::afw::geom::Functor::inverse |
( |
double |
y, |
|
|
double |
tol = 1e-10, |
|
|
unsigned int |
maxiter = 1000 |
|
) |
| const |
|
virtualinherited |
- Parameters
-
| y | desired value of functor |
| tol | Convergence tolerance for the Newton-Raphson search such that abs(x_{iter} - x_{iter-1}) < tol. |
| maxiter | Maximum number of iterations in the N-R search. |
- Returns
- The x value such that y = f(x).
- Exceptions
-
| lsst::pex::exceptions::OutOfRangeError | if (tol <= 0) or (tol > 1) or (maxiter < 1). |
| lsst::pex::exceptions::RuntimeError | if the number of N-R iterations > maxiter. |
| virtual double lsst::afw::geom::LinearFunctor::operator() |
( |
double |
x | ) |
const |
|
virtual |
The documentation for this class was generated from the following file: