25#ifndef LSST_JOINTCAL_ASTROMETRY_FIT_H
26#define LSST_JOINTCAL_ASTROMETRY_FIT_H
119 void offsetParams(Eigen::VectorXd
const &delta)
override;
137 bool _fittingDistortions{}, _fittingPos{}, _fittingPM{};
144 Eigen::VectorXd &grad,
145 MeasuredStarList
const *msList =
nullptr)
const override;
148 Eigen::VectorXd &grad)
const override;
164 Point transformFittedStar(FittedStar
const &fittedStar, AstrometryTransform
const &sky2TP,
165 double deltaYears)
const;
168 void accumulateStatImage(CcdImage
const &ccdImage, Chi2Accumulator &accum)
const;
Class that handles the astrometric least squares problem.
void checkStuff()
DEBUGGING routine.
std::shared_ptr< AstrometryModel > getModel() const
Return the model being fit.
AstrometryFit(AstrometryFit const &)=delete
No copy or move: there is only ever one fitter of a given type.
void freezeErrorTransform()
The transformations used to propagate errors are freezed to the current state.
void leastSquareDerivativesMeasurement(CcdImage const &ccdImage, TripletList &tripletList, Eigen::VectorXd &grad, MeasuredStarList const *msList=nullptr) const override
Compute the derivatives of the measured stars and model for one CcdImage.
void accumulateStatImageList(CcdImageList const &ccdImageList, Chi2Accumulator &accum) const override
Compute the chi2 (per star or total, depending on which Chi2Accumulator is used) for measurements.
void accumulateStatRefStars(Chi2Accumulator &accum) const override
Compute the chi2 (per star or total, depending on which Chi2Accumulator is used) for RefStars.
AstrometryFit & operator=(AstrometryFit &&)=delete
AstrometryFit & operator=(AstrometryFit const &)=delete
void saveChi2RefContributions(std::string const &filename) const override
Save a CSV file containing residuals of reference terms.
void offsetParams(Eigen::VectorXd const &delta) override
Offset the parameters by the requested quantities.
void assignIndices(std::string const &whatToFit) override
Set parameters to fit and assign indices in the big matrix.
void leastSquareDerivativesReference(FittedStarList const &fittedStarList, TripletList &tripletList, Eigen::VectorXd &grad) const override
Compute the derivatives of the reference terms.
void getIndicesOfMeasuredStar(MeasuredStar const &measuredStar, IndexVector &indices) const override
this routine is to be used only in the framework of outlier removal
AstrometryFit(AstrometryFit &&)=delete
void saveChi2MeasContributions(std::string const &filename) const override
Save a CSV file containing residuals of measurement terms.
std::list< std::shared_ptr< CcdImage > > CcdImageList