lsst.jointcal  14.0-19-g0e46020
Classes | Public Member Functions | Friends | List of all members
lsst::jointcal::TwoTransfoMapping Class Reference

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

#include <TwoTransfoMapping.h>

Inheritance diagram for lsst::jointcal::TwoTransfoMapping:
lsst::jointcal::Mapping

Public Member Functions

 TwoTransfoMapping (SimpleGtransfoMapping *chipMapping, SimpleGtransfoMapping *visitMapping)
 
 TwoTransfoMapping (TwoTransfoMapping const &)=delete
 No copy or move: there is only ever one instance of a given model (i.e.. per ccd+visit) More...
 
 TwoTransfoMapping (TwoTransfoMapping &&)=delete
 
TwoTransfoMappingoperator= (TwoTransfoMapping const &)=delete
 
TwoTransfoMappingoperator= (TwoTransfoMapping &&)=delete
 
unsigned getNpar () const
 Number of parameters in total. More...
 
void getMappingIndices (std::vector< unsigned > &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 mapping 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...
 
Gtransfo const & getTransfo1 () const
 access to transfos More...
 
Gtransfo const & getTransfo2 () const
 access to transfos More...
 
void positionDerivative (Point const &where, Eigen::Matrix2d &derivative, double epsilon) const
 Currently not implemented. More...
 
void freezeErrorTransform ()
 Currently not implemented. More...
 

Friends

class ConstrainedPolyModel
 

Detailed Description

The mapping with two transfos in a row.

Definition at line 15 of file TwoTransfoMapping.h.

Constructor & Destructor Documentation

◆ TwoTransfoMapping() [1/3]

lsst::jointcal::TwoTransfoMapping::TwoTransfoMapping ( SimpleGtransfoMapping chipMapping,
SimpleGtransfoMapping visitMapping 
)

Definition at line 9 of file TwoTransfoMapping.cc.

◆ TwoTransfoMapping() [2/3]

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

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

◆ TwoTransfoMapping() [3/3]

lsst::jointcal::TwoTransfoMapping::TwoTransfoMapping ( TwoTransfoMapping &&  )
delete

Member Function Documentation

◆ computeTransformAndDerivatives()

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

Actually applies the mapping 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::Mapping.

Definition at line 37 of file TwoTransfoMapping.cc.

◆ freezeErrorTransform()

void lsst::jointcal::TwoTransfoMapping::freezeErrorTransform ( )

Currently not implemented.

Definition at line 94 of file TwoTransfoMapping.cc.

◆ getMappingIndices()

void lsst::jointcal::TwoTransfoMapping::getMappingIndices ( std::vector< unsigned > &  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::Mapping.

Definition at line 20 of file TwoTransfoMapping.cc.

◆ getNpar()

unsigned lsst::jointcal::TwoTransfoMapping::getNpar ( ) const
virtual

Number of parameters in total.

Implements lsst::jointcal::Mapping.

Definition at line 18 of file TwoTransfoMapping.cc.

◆ getTransfo1()

Gtransfo const& lsst::jointcal::TwoTransfoMapping::getTransfo1 ( ) const
inline

access to transfos

Definition at line 48 of file TwoTransfoMapping.h.

◆ getTransfo2()

Gtransfo const& lsst::jointcal::TwoTransfoMapping::getTransfo2 ( ) const
inline

access to transfos

Definition at line 51 of file TwoTransfoMapping.h.

◆ offsetParams()

void lsst::jointcal::TwoTransfoMapping::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::Mapping.

Definition at line 42 of file TwoTransfoMapping.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionDerivative()

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

Currently not implemented.

Implements lsst::jointcal::Mapping.

Definition at line 82 of file TwoTransfoMapping.cc.

◆ transformPosAndErrors()

void lsst::jointcal::TwoTransfoMapping::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::Mapping.

Definition at line 76 of file TwoTransfoMapping.cc.

Friends And Related Function Documentation

◆ ConstrainedPolyModel

friend class ConstrainedPolyModel
friend

Definition at line 60 of file TwoTransfoMapping.h.


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