23 #include "pybind11/pybind11.h"
27 namespace py = pybind11;
28 using namespace pybind11::literals;
34 void declareChi2(py::module &mod) {
35 py::class_<Chi2Statistic, std::shared_ptr<Chi2Statistic>> cls(mod,
"Chi2Statistic");
37 cls.def(py::init<>());
39 cls.def(
"__str__", &Chi2Statistic::__str__);
40 cls.def_readwrite(
"chi2", &Chi2Statistic::chi2);
41 cls.def_readwrite(
"ndof", &Chi2Statistic::ndof);
44 PYBIND11_PLUGIN(chi2) {
45 py::module mod(
"chi2");