Template Class Function1

Inheritance Relationships

Base Types

Derived Types

Class Documentation

template<typename ReturnT>
class Function1 : public lsst::afw::table::io::PersistableFacade<Function1<ReturnT>>, public lsst::afw::math::Function<ReturnT>

A Function taking one argument.

Subclass and override operator() to do useful work.

Subclassed by lsst::afw::math::Chebyshev1Function1< ReturnT >, lsst::afw::math::GaussianFunction1< ReturnT >, lsst::afw::math::IntegerDeltaFunction1< ReturnT >, lsst::afw::math::LanczosFunction1< ReturnT >, lsst::afw::math::NullFunction1< ReturnT >, lsst::afw::math::PolynomialFunction1< ReturnT >

Public Functions

Function1(unsigned int nParams)

Parameters
  • nParams: number of function parameters

Construct a Function1 given the number of function parameters.

The function parameters are initialized to 0.

Function1(std::vector<double> const &params)

Parameters
  • params: function parameters

Construct a Function1 given the function parameters.

Function1(Function1 const&)
Function1(Function1&&)
Function1 &operator=(Function1 const&)
Function1 &operator=(Function1&&)
~Function1()
virtual std::shared_ptr<Function1<ReturnT>> clone() const = 0

Return a pointer to a deep copy of this function

This function exists instead of a copy constructor so one can obtain a copy of an actual function instead of a useless copy of the base class.

Every concrete subclass must override this method.

Return

a pointer to a deep copy of the function

virtual ReturnT operator()(double x) const = 0
std::string toString(std::string const& = "") const

Return a string representation of the function

Return

a string representation of the function

virtual void computeCache(int const n)

Protected Functions

Function1()