25 #ifndef LSST_AFW_MATH_MINIMIZE_H
26 #define LSST_AFW_MATH_MINIMIZE_H
38 #include "boost/shared_ptr.hpp"
39 #include "Minuit2/FCNBase.h"
59 template<
typename ReturnT>
62 std::vector<double>
const &initialParameterList,
63 std::vector<double>
const &stepSizeList,
64 std::vector<double>
const &measurementList,
65 std::vector<double>
const &varianceList,
66 std::vector<double>
const &xPositionList,
70 template<
typename ReturnT>
73 std::vector<double>
const &initialParameterList,
74 std::vector<double>
const &stepSizeList,
75 std::vector<double>
const &measurementList,
76 std::vector<double>
const &varianceList,
77 std::vector<double>
const &xPositionList,
78 std::vector<double>
const &yPositionList,
84 #endif // !defined(LSST_AFW_MATH_MINIMIZE_H)
bool isValid
true if the fit converged; false otherwise
FitResults minimize(lsst::afw::math::Function1< ReturnT > const &function, std::vector< double > const &initialParameterList, std::vector< double > const &stepSizeList, std::vector< double > const &measurementList, std::vector< double > const &varianceList, std::vector< double > const &xPositionList, double errorDef)
A Function taking two arguments.
Results from minimizing a function.
A Function taking one argument.
std::vector< double > parameterList
fit parameters
Define the basic Function classes.
std::vector< std::pair< double, double > > parameterErrorList
negative,positive (1 sigma?) error for each parameter
double chiSq
chi squared; may be nan or infinite, but only if isValid false