LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+bd2ed33bd6,g1470d8bcf6+de7501a2e0,g14a832a312+ff425fae3c,g2079a07aa2+86d27d4dc4,g2305ad1205+91a32aca49,g295015adf3+762506a1ad,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+c34e8be1fa,g487adcacf7+5fae3daba8,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+ea1711114f,g5a732f18d5+53520f316c,g64a986408d+bd2ed33bd6,g858d7b2824+bd2ed33bd6,g8a8a8dda67+585e252eca,g99cad8db69+016a06b37a,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+09e12c87ab,gc120e1dc64+bc2e06c061,gc28159a63d+0e5473021a,gcf0d15dbbd+c34e8be1fa,gdaeeff99f8+f9a426f77a,ge6526c86ff+508d0e0a30,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf18bd8381d+8d59551888,gf1cff7945b+bd2ed33bd6,w.2024.16
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
lsst::jointcal::PhotometryMappingBase Class Referenceabstract

Relates transform(s) to their position in the fitting matrix and allows interaction with the transform(s). More...

#include <PhotometryMapping.h>

Inheritance diagram for lsst::jointcal::PhotometryMappingBase:
lsst::jointcal::ChipVisitPhotometryMapping lsst::jointcal::PhotometryMapping lsst::jointcal::ChipVisitFluxMapping lsst::jointcal::ChipVisitMagnitudeMapping

Public Member Functions

 PhotometryMappingBase ()
 
virtual ~PhotometryMappingBase ()=default
 
 PhotometryMappingBase (PhotometryMappingBase const &)=delete
 No copy or move: there is only ever one instance of a given mapping (i.e. per ccd+visit)
 
 PhotometryMappingBase (PhotometryMappingBase &&)=delete
 
PhotometryMappingBaseoperator= (PhotometryMappingBase const &)=delete
 
PhotometryMappingBaseoperator= (PhotometryMappingBase &&)=delete
 
virtual std::size_t getNpar () const =0
 Number of total parameters in this mapping.
 
virtual double transform (MeasuredStar const &measuredStar, double value) const =0
 Return the on-sky transformed flux for measuredStar on ccdImage.
 
virtual double transformError (MeasuredStar const &measuredStar, double value, double valueErr) const =0
 Return the on-sky transformed flux uncertainty for measuredStar on ccdImage.
 
virtual void freezeErrorTransform ()=0
 Once this routine has been called, the error transform is not modified by offsetParams().
 
virtual void computeParameterDerivatives (MeasuredStar const &measuredStar, double value, Eigen::Ref< Eigen::VectorXd > derivatives) const =0
 Compute the derivatives with respect to the parameters (i.e.
 
void setFixed (bool _fixed)
 Make this mapping's parameters fixed (i.e. not varied during fitting).
 
bool isFixed () const
 
virtual Eigen::VectorXd getParameters ()=0
 
virtual void getMappingIndices (IndexVector &indices) const =0
 Gets how this set of parameters (of length getNpar()) map into the "grand" fit.
 
virtual void print (std::ostream &out) const =0
 Print a string representation of the contents of this mapping, for debugging.
 
Eigen::Index getIndex () const
 Get the index of this mapping in the grand fit.
 
void setIndex (Eigen::Index i)
 Set the index of this mapping in the grand fit.
 

Protected Attributes

Eigen::Index index
 
bool fixed
 

Detailed Description

Relates transform(s) to their position in the fitting matrix and allows interaction with the transform(s).

Definition at line 45 of file PhotometryMapping.h.

Constructor & Destructor Documentation

◆ PhotometryMappingBase() [1/3]

lsst::jointcal::PhotometryMappingBase::PhotometryMappingBase ( )
inline

◆ ~PhotometryMappingBase()

virtual lsst::jointcal::PhotometryMappingBase::~PhotometryMappingBase ( )
virtualdefault

◆ PhotometryMappingBase() [2/3]

lsst::jointcal::PhotometryMappingBase::PhotometryMappingBase ( PhotometryMappingBase const & )
delete

No copy or move: there is only ever one instance of a given mapping (i.e. per ccd+visit)

◆ PhotometryMappingBase() [3/3]

lsst::jointcal::PhotometryMappingBase::PhotometryMappingBase ( PhotometryMappingBase && )
delete

Member Function Documentation

◆ computeParameterDerivatives()

virtual void lsst::jointcal::PhotometryMappingBase::computeParameterDerivatives ( MeasuredStar const & measuredStar,
double value,
Eigen::Ref< Eigen::VectorXd > derivatives ) const
pure virtual

Compute the derivatives with respect to the parameters (i.e.

the coefficients).

Parameters
[in]measuredStarThe measured star position to transform.
[in]valueThe instrument flux or magnitude to compute the derivative at.
[out]derivativesThe computed derivatives, in the same order as the deltas in offsetParams.

Implemented in lsst::jointcal::PhotometryMapping, lsst::jointcal::ChipVisitFluxMapping, and lsst::jointcal::ChipVisitMagnitudeMapping.

◆ freezeErrorTransform()

virtual void lsst::jointcal::PhotometryMappingBase::freezeErrorTransform ( )
pure virtual

Once this routine has been called, the error transform is not modified by offsetParams().

The routine can be called when the mappings are roughly in place. After the call, the transformations used to propagate errors are no longer affected when updating the mappings. This allows an exactly linear fit, which can be necessary for some model+data combinations.

Implemented in lsst::jointcal::PhotometryMapping, and lsst::jointcal::ChipVisitPhotometryMapping.

◆ getIndex()

Eigen::Index lsst::jointcal::PhotometryMappingBase::getIndex ( ) const
inline

Get the index of this mapping in the grand fit.

Definition at line 121 of file PhotometryMapping.h.

121{ return index; }

◆ getMappingIndices()

virtual void lsst::jointcal::PhotometryMappingBase::getMappingIndices ( IndexVector & indices) const
pure virtual

Gets how this set of parameters (of length getNpar()) map into the "grand" fit.

Expects that indices has enough space reserved.

Implemented in lsst::jointcal::PhotometryMapping, and lsst::jointcal::ChipVisitPhotometryMapping.

◆ getNpar()

virtual std::size_t lsst::jointcal::PhotometryMappingBase::getNpar ( ) const
pure virtual

Number of total parameters in this mapping.

Implemented in lsst::jointcal::PhotometryMapping, and lsst::jointcal::ChipVisitPhotometryMapping.

◆ getParameters()

virtual Eigen::VectorXd lsst::jointcal::PhotometryMappingBase::getParameters ( )
pure virtual

◆ isFixed()

bool lsst::jointcal::PhotometryMappingBase::isFixed ( ) const
inline

Definition at line 102 of file PhotometryMapping.h.

102{ return fixed; }

◆ operator=() [1/2]

PhotometryMappingBase & lsst::jointcal::PhotometryMappingBase::operator= ( PhotometryMappingBase && )
delete

◆ operator=() [2/2]

PhotometryMappingBase & lsst::jointcal::PhotometryMappingBase::operator= ( PhotometryMappingBase const & )
delete

◆ print()

virtual void lsst::jointcal::PhotometryMappingBase::print ( std::ostream & out) const
pure virtual

Print a string representation of the contents of this mapping, for debugging.

This string representation can be very verbose, as it contains all of the parameters of all of the transforms in this mapping.

Implemented in lsst::jointcal::PhotometryMapping, and lsst::jointcal::ChipVisitPhotometryMapping.

◆ setFixed()

void lsst::jointcal::PhotometryMappingBase::setFixed ( bool _fixed)
inline

Make this mapping's parameters fixed (i.e. not varied during fitting).

Definition at line 101 of file PhotometryMapping.h.

101{ fixed = _fixed; }

◆ setIndex()

void lsst::jointcal::PhotometryMappingBase::setIndex ( Eigen::Index i)
inline

Set the index of this mapping in the grand fit.

Definition at line 124 of file PhotometryMapping.h.

124{ index = i; }

◆ transform()

virtual double lsst::jointcal::PhotometryMappingBase::transform ( MeasuredStar const & measuredStar,
double value ) const
pure virtual

Return the on-sky transformed flux for measuredStar on ccdImage.

Parameters
[in]measuredStarThe measured star position to transform.
[in]valueThe instrument flux or magnitude to transform.
Returns
The on-sky value () transformed from value at measuredStar's position.

Implemented in lsst::jointcal::PhotometryMapping, and lsst::jointcal::ChipVisitPhotometryMapping.

◆ transformError()

virtual double lsst::jointcal::PhotometryMappingBase::transformError ( MeasuredStar const & measuredStar,
double value,
double valueErr ) const
pure virtual

Return the on-sky transformed flux uncertainty for measuredStar on ccdImage.

Matches the underlying PhotometryTransform's transformError() until freezeErrorTransform() is called.

Parameters
[in]measuredStarThe measured star position to transform.
[in]valueThe flux or magnitude to transform.
[in]valueErrThe flux or magnitude uncertainty to transform.
Returns
The on-sky value transformed from value at measuredStar's position.

Implemented in lsst::jointcal::PhotometryMapping, lsst::jointcal::ChipVisitFluxMapping, and lsst::jointcal::ChipVisitMagnitudeMapping.

Member Data Documentation

◆ fixed

bool lsst::jointcal::PhotometryMappingBase::fixed
protected

Definition at line 130 of file PhotometryMapping.h.

◆ index

Eigen::Index lsst::jointcal::PhotometryMappingBase::index
protected

Definition at line 128 of file PhotometryMapping.h.


The documentation for this class was generated from the following file: