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,
"s"_a,
"order"_a);
51 cls.def(
"getErrors", &LeastSqFitter1d<FittingFunc>::getErrors);
52 cls.def(
"getBestFitFunction", &LeastSqFitter1d<FittingFunc>::getBestFitFunction);
53 cls.def(
"valueAt", &LeastSqFitter1d<FittingFunc>::valueAt,
"x"_a);
54 cls.def(
"residuals", &LeastSqFitter1d<FittingFunc>::residuals);
55 cls.def(
"getChiSq", &LeastSqFitter1d<FittingFunc>::getChiSq);
56 cls.def(
"getReducedChiSq", &LeastSqFitter1d<FittingFunc>::getReducedChiSq);
62 declareLeastSqFitter1d<afw::math::PolynomialFunction1<double>>(mod,
"LeastSqFitter1dPoly");