Class lsst::meas::astrom::sip::LeastSqFitter1d¶
-
template<class
FittingFunc
>
classLeastSqFitter1d
¶ Fit an lsst::afw::math::Function1 object to a set of data points in one dimension.
The class is templated over the kind of object to fit.
Input is a list of x ordinates for a set of points, the y coordinate, and the uncertainties, s. order is order of the polynomial to fit (e.g if the templated function is lsst::afw::math::PolynomialFunction1, then order=3 => fit a function of the form \(ax^2+bx+c\)
- See
- Template Parameters
FittingFunc
: The 1d function to fit in both dimensions. Must inherit from lsst::afw::math::Function1
- Parameters
x
: Ordinate of points to fity
: Co-ordinate of pionts to fits
: 1 \(\sigma\) uncertainties in zorder
: Polynomial order to fit