25 #ifndef LSST_AFW_MATH_MINIMIZE_H
26 #define LSST_AFW_MATH_MINIMIZE_H
33 #include "Minuit2/FCNBase.h"
35 #include "lsst/daf/base/Citizen.h"
50 std::vector<std::pair<double, double> >
76 template <
typename ReturnT>
78 std::vector<double>
const &initialParameterList, std::vector<double>
const &stepSizeList,
79 std::vector<double>
const &measurementList, std::vector<double>
const &varianceList,
80 std::vector<double>
const &xPositionList,
double errorDef);
105 template <
typename ReturnT>
107 std::vector<double>
const &initialParameterList, std::vector<double>
const &stepSizeList,
108 std::vector<double>
const &measurementList, std::vector<double>
const &varianceList,
109 std::vector<double>
const &xPositionList, std::vector<double>
const &yPositionList,
115 #endif // !defined(LSST_AFW_MATH_MINIMIZE_H)
std::vector< double > parameterList
fit parameters
std::vector< std::pair< double, double > > parameterErrorList
negative,positive (1 sigma?) error for each parameter
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)
Find the minimum of a function(x)
A Function taking two arguments.
Results from minimizing a function.
double chiSq
chi squared; may be nan or infinite, but only if isValid false
A Function taking one argument.
bool isValid
true if the fit converged; false otherwise