22 #include "pybind11/pybind11.h"
23 #include "pybind11/eigen.h"
24 #include "pybind11/stl.h"
28 #include "ndarray/pybind11.h"
33 using namespace pybind11::literals;
41 template <
typename FittingFunc>
48 "x"_a,
"y"_a,
"z"_a,
"s"_a,
"order"_a);
51 cls.def(
"getErrors", &LeastSqFitter2d<FittingFunc>::getErrors);
52 cls.def(
"valueAt", &LeastSqFitter2d<FittingFunc>::valueAt,
"x"_a,
"y"_a);
53 cls.def(
"residuals", &LeastSqFitter2d<FittingFunc>::residuals);
54 cls.def(
"getChiSq", &LeastSqFitter2d<FittingFunc>::getChiSq);
55 cls.def(
"getReducedChiSq", &LeastSqFitter2d<FittingFunc>::getReducedChiSq);
61 declareLeastSqFitter2d<afw::math::PolynomialFunction1<double>>(mod,
"LeastSqFitter2dPoly");