Class PhotometryFit

Inheritance Relationships

Base Type

Class Documentation

class PhotometryFit : public lsst::jointcal::FitterBase

Class that handles the photometric least squares problem.

Public Functions

PhotometryFit(std::shared_ptr<Associations> associations, std::shared_ptr<PhotometryModel> photometryModel)

Construct a photometry fitter.

Parameters
  • associations: The associations catalog to use in the fitter.

  • photometryModel: The model to build the fitter for.

PhotometryFit(PhotometryFit const&)

No copy or move: there is only ever one fitter of a given type.

PhotometryFit(PhotometryFit&&)
PhotometryFit &operator=(PhotometryFit const&)
PhotometryFit &operator=(PhotometryFit&&)
void assignIndices(std::string const &whatToFit)

Set parameters to fit and assign indices in the big matrix.

Parameters
  • [in] whatToFit: Valid strings : “Model”, “Fluxes”, which define which parameter sets are going to be fitted. whatToFit=”Model Fluxes” will set both parameter sets variable when computing derivatives. Provided it contains “Model”, whatToFit is passed over to the PhotometryModel, and can hence be used to control more finely which subsets of the photometric model are being fitted, if the the actual PhotometryModel implements such a possibility.

void offsetParams(Eigen::VectorXd const &delta)

Offset the parameters by the requested quantities. The used parameter layout is the one from the last call to assignIndices or minimize(). There is no easy way to check that the current setting of whatToFit and the provided Delta vector are compatible: we can only test the size.

Parameters
  • [in] delta: vector of offsets to apply

std::shared_ptr<PhotometryModel> getModel() const

Return the model being fit.

Protected Functions

void saveChi2MeasContributions(std::string const &filename) const

Save a CSV file containing residuals of measurement terms.

void saveChi2RefContributions(std::string const &filename) const

Save a CSV file containing residuals of reference terms.