Template Class IntegerDeltaFunction2

Inheritance Relationships

Base Type

Class Documentation

template<typename ReturnT>
class IntegerDeltaFunction2 : public lsst::afw::math::Function2<ReturnT>

2-dimensional integer delta function.

f(x) = 1 if x == xo and y == yo, 0 otherwise.

For use as a kernel function be sure to handle the offset for row and column center; see examples/deltaFunctionKernel for an example.

Public Functions

IntegerDeltaFunction2(double xo, double yo)

Construct an integer delta function with specified xo, yo

IntegerDeltaFunction2(IntegerDeltaFunction2 const&)
IntegerDeltaFunction2(IntegerDeltaFunction2&&)
IntegerDeltaFunction2 &operator=(IntegerDeltaFunction2 const&)
IntegerDeltaFunction2 &operator=(IntegerDeltaFunction2&&)
~IntegerDeltaFunction2()
std::shared_ptr<Function2<ReturnT>> clone() const

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 non-virtual function must override this method.

Return

a pointer to a deep copy of the function

ReturnT operator()(double x, double y) const
std::string toString(std::string const&) const

Return a string representation of the function

Return

a string representation of the function

Protected Functions

IntegerDeltaFunction2()