14 # pragma warning(disable:4231)
17 # pragma warning(disable:4251)
20 # pragma warning(disable:4275)
23 # pragma warning(disable:4800)
28 #include <boost/python.hpp>
37 using namespace boost::python;
49 class_ < StatedFCN, bases < ROOT::Minuit2::FCNBase >,
51 class_ < StatedFCN, bases < FCNBase >,
55 "This a base class for objective function used in fitting that\n"
56 "maintains the state of the function's parameters.",
59 .def (
"objectiveValue", &StatedFCN::objectiveValue,
60 "objectiveValue () -> value\n"
62 "Returns the objective value. For example, the objective\n"
63 "might be the Chi-Squared when derived class returns it as\n"
64 "its objective value." )
66 .def (
"degreesOfFreedom", &StatedFCN::degreesOfFreedom,
67 "degreesOfFreedom () -> value\n"
69 "Returns the degrees of freedom as integer." )
71 .def (
"setFunction", &StatedFCN::setFunction,
72 "setFunction ( FunctionBase ) -> None\n"
74 "Sets the model function." )
76 .def (
"setDataSource",
77 (
void ( StatedFCN::* )
79 &StatedFCN::setDataSource )
81 .def (
"setDataSource",
82 (
void ( StatedFCN::* )
85 const std::vector < int > & ) )
86 &StatedFCN::setDataSource,
87 "setDataSource ( DataSource ) -> None\n"
88 "setDataSource ( DataSource, value, sequence ) -> None\n"
90 "The first form sets the data source with default indexes. The\n"
91 "second form takes in addition the dimensionality of the\n"
92 "coordinate and a column indexes from the sequence." )
94 .def (
"setUseErrors", &StatedFCN::setUseErrors,
95 "setUseErrors ( Boolean ) -> None\n"
97 "Sets the FCN to use errors on the data source if they exist." )