Template Class GaussianFunction1

Inheritance Relationships

Base Type

Class Documentation

template<typename ReturnT>
class GaussianFunction1 : public lsst::afw::math::Function1<ReturnT>

1-dimensional Gaussian

f(x) = A e^(-x^2 / 2 sigma^2) where:

  • A = 1 / (sqrt(2 pi) xSigma) coefficient c0 = sigma

Public Functions

GaussianFunction1(double sigma)

Parameters
  • sigma: sigma

Construct a Gaussian function with specified sigma

GaussianFunction1(GaussianFunction1 const&)
GaussianFunction1(GaussianFunction1&&)
GaussianFunction1 &operator=(GaussianFunction1 const&)
GaussianFunction1 &operator=(GaussianFunction1&&)
~GaussianFunction1()
std::shared_ptr<Function1<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 concrete subclass must override this method.

Return

a pointer to a deep copy of the function

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

Return a string representation of the function

Return

a string representation of the function

Protected Functions

GaussianFunction1()