25 #ifndef LSST_JOINTCAL_FITTER_BASE_H 26 #define LSST_JOINTCAL_FITTER_BASE_H 56 : _associations(associations), _whatToFit(
""), _lastNTrip(0), _nParTot(0), _nMeasuredStars(0) {}
106 bool const doRankUpdate =
true,
bool const doLineSearch =
false,
123 void leastSquareDerivatives(
TripletList &tripletList, Eigen::VectorXd &grad)
const;
133 virtual void offsetParams(Eigen::VectorXd
const &delta) = 0;
140 virtual void assignIndices(
std::string const &whatToFit) = 0;
150 virtual void saveChi2Contributions(
std::string const &baseName)
const;
164 virtual void saveChi2MeasContributions(
std::string const &filename)
const = 0;
167 virtual void saveChi2RefContributions(
std::string const &filename)
const = 0;
202 virtual void getIndicesOfMeasuredStar(
MeasuredStar const &measuredStar,
216 virtual void leastSquareDerivativesMeasurement(
221 virtual void leastSquareDerivativesReference(
FittedStarList const &fittedStarList,
222 TripletList &tripletList, Eigen::VectorXd &grad)
const = 0;
235 double _lineSearch(Eigen::VectorXd
const &delta);
239 #endif // LSST_JOINTCAL_FITTER_BASE_H
Simple structure to accumulate chi2 and ndof.
Base class for Chi2Statistic and Chi2List, to allow addEntry inside Fitter for either class...
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 list of MeasuredStar. They are usually filled in Associations::createCcdImage.
MinimizeResult
Return value of minimize()
FitterBase(std::shared_ptr< Associations > associations)
LSST DM logging module built on log4cxx.
A base class for image defects.
A list of FittedStar s. Such a list is typically constructed by Associations.
objects measured on actual images.
std::shared_ptr< Associations > _associations
Handler of an actual image from a single CCD.
double computeChi2(const StarMatchList &L, const AstrometryTransform &transform)
the actual chi2
Eigen::Index _nMeasuredStars