lsst.jointcal  master-g59ec7209dd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 setMappingIndices (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 (double 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 freezeErrorScales ()
 Currently not implemented. More...
 
- Public Member Functions inherited from lsst::jointcal::Mapping
virtual ~Mapping ()
 

Friends

class ConstrainedPolyModel
 

Detailed Description

The mapping with two transfos in a row.

Definition at line 15 of file TwoTransfoMapping.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file TwoTransfoMapping.cc.

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)

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

Member Function Documentation

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.

void lsst::jointcal::TwoTransfoMapping::freezeErrorScales ( )

Currently not implemented.

Definition at line 94 of file TwoTransfoMapping.cc.

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

Number of parameters in total.

Implements lsst::jointcal::Mapping.

Definition at line 18 of file TwoTransfoMapping.cc.

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

access to transfos

Definition at line 54 of file TwoTransfoMapping.h.

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

access to transfos

Definition at line 57 of file TwoTransfoMapping.h.

void lsst::jointcal::TwoTransfoMapping::offsetParams ( double const *  delta)
inlinevirtual

Remember the error scale and freeze it.

Implements lsst::jointcal::Mapping.

Definition at line 48 of file TwoTransfoMapping.h.

TwoTransfoMapping& lsst::jointcal::TwoTransfoMapping::operator= ( TwoTransfoMapping const &  )
delete
TwoTransfoMapping& lsst::jointcal::TwoTransfoMapping::operator= ( TwoTransfoMapping &&  )
delete
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.

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

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

friend class ConstrainedPolyModel
friend

Definition at line 66 of file TwoTransfoMapping.h.


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