lsst.jointcal  18.1.0-1-g0896a44+9
Classes | Public Member Functions | Friends | List of all members
lsst::jointcal::ChipVisitAstrometryMapping Class Reference

The mapping with two transforms in a row. More...

#include <ChipVisitAstrometryMapping.h>

Inheritance diagram for lsst::jointcal::ChipVisitAstrometryMapping:
lsst::jointcal::AstrometryMapping

Public Member Functions

 ChipVisitAstrometryMapping (std::shared_ptr< SimpleAstrometryMapping > chipMapping, std::shared_ptr< SimpleAstrometryMapping > visitMapping)
 
 ChipVisitAstrometryMapping (ChipVisitAstrometryMapping const &)=delete
 No copy or move: there is only ever one instance of a given model (i.e.. per ccd+visit) More...
 
 ChipVisitAstrometryMapping (ChipVisitAstrometryMapping &&)=delete
 
ChipVisitAstrometryMappingoperator= (ChipVisitAstrometryMapping const &)=delete
 
ChipVisitAstrometryMappingoperator= (ChipVisitAstrometryMapping &&)=delete
 
std::size_t getNpar () const
 Number of parameters in total. More...
 
void getMappingIndices (IndexVector &indices) const
 Sets how this set of parameters (of length Npar()) map into the "grand" fit Expects that indices has enough space reserved. More...
 
void computeTransformAndDerivatives (FatPoint const &where, FatPoint &outPoint, Eigen::MatrixX2d &H) const
 Actually applies the AstrometryMapping and evaluates the derivatives w.r.t the fitted parameters. More...
 
void transformPosAndErrors (FatPoint const &where, FatPoint &outPoint) const
 The same as above but without the parameter derivatives (used to evaluate chi^2) More...
 
void offsetParams (Eigen::VectorXd const &delta)
 Remember the error scale and freeze it. More...
 
AstrometryTransform const & getTransform1 () const
 access to transforms More...
 
AstrometryTransform const & getTransform2 () const
 access to transforms More...
 
void positionDerivative (Point const &where, Eigen::Matrix2d &derivative, double epsilon) const
 Currently not implemented. More...
 
void freezeErrorTransform ()
 Currently not implemented. More...
 

Friends

class ConstrainedAstrometryModel
 

Detailed Description

The mapping with two transforms in a row.

Definition at line 38 of file ChipVisitAstrometryMapping.h.

Constructor & Destructor Documentation

◆ ChipVisitAstrometryMapping() [1/3]

lsst::jointcal::ChipVisitAstrometryMapping::ChipVisitAstrometryMapping ( std::shared_ptr< SimpleAstrometryMapping chipMapping,
std::shared_ptr< SimpleAstrometryMapping visitMapping 
)

Definition at line 33 of file ChipVisitAstrometryMapping.cc.

◆ ChipVisitAstrometryMapping() [2/3]

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

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

◆ ChipVisitAstrometryMapping() [3/3]

lsst::jointcal::ChipVisitAstrometryMapping::ChipVisitAstrometryMapping ( ChipVisitAstrometryMapping &&  )
delete

Member Function Documentation

◆ computeTransformAndDerivatives()

void lsst::jointcal::ChipVisitAstrometryMapping::computeTransformAndDerivatives ( FatPoint const &  where,
FatPoint outPoint,
Eigen::MatrixX2d H 
) const
virtual

Actually applies the AstrometryMapping and evaluates the derivatives w.r.t the fitted parameters.

This is grouped into a single call because for most models, evaluating the derivatives w.r.T parameters is not much longer than just transforming

Implements lsst::jointcal::AstrometryMapping.

Definition at line 62 of file ChipVisitAstrometryMapping.cc.

◆ freezeErrorTransform()

void lsst::jointcal::ChipVisitAstrometryMapping::freezeErrorTransform ( )

Currently not implemented.

Definition at line 119 of file ChipVisitAstrometryMapping.cc.

◆ getMappingIndices()

void lsst::jointcal::ChipVisitAstrometryMapping::getMappingIndices ( IndexVector indices) const
virtual

Sets how this set of parameters (of length Npar()) map into the "grand" fit Expects that indices has enough space reserved.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 45 of file ChipVisitAstrometryMapping.cc.

◆ getNpar()

std::size_t lsst::jointcal::ChipVisitAstrometryMapping::getNpar ( ) const
virtual

Number of parameters in total.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 43 of file ChipVisitAstrometryMapping.cc.

◆ getTransform1()

AstrometryTransform const& lsst::jointcal::ChipVisitAstrometryMapping::getTransform1 ( ) const
inline

access to transforms

Definition at line 72 of file ChipVisitAstrometryMapping.h.

◆ getTransform2()

AstrometryTransform const& lsst::jointcal::ChipVisitAstrometryMapping::getTransform2 ( ) const
inline

access to transforms

Definition at line 75 of file ChipVisitAstrometryMapping.h.

◆ offsetParams()

void lsst::jointcal::ChipVisitAstrometryMapping::offsetParams ( Eigen::VectorXd const &  delta)
inlinevirtual

Remember the error scale and freeze it.

Note
this routine is not used when fitting (the Model manages the mappings separately), but can be useful for debugging

Implements lsst::jointcal::AstrometryMapping.

Definition at line 66 of file ChipVisitAstrometryMapping.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionDerivative()

void lsst::jointcal::ChipVisitAstrometryMapping::positionDerivative ( Point const &  where,
Eigen::Matrix2d &  derivative,
double  epsilon 
) const
virtual

Currently not implemented.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 107 of file ChipVisitAstrometryMapping.cc.

◆ transformPosAndErrors()

void lsst::jointcal::ChipVisitAstrometryMapping::transformPosAndErrors ( FatPoint const &  where,
FatPoint outPoint 
) const
virtual

The same as above but without the parameter derivatives (used to evaluate chi^2)

Implements lsst::jointcal::AstrometryMapping.

Definition at line 101 of file ChipVisitAstrometryMapping.cc.

Friends And Related Function Documentation

◆ ConstrainedAstrometryModel

friend class ConstrainedAstrometryModel
friend

Definition at line 84 of file ChipVisitAstrometryMapping.h.


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