lsst.jointcal  master-gc935ebf72c
 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)
 
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 (const FatPoint &where, FatPoint &outPoint, Eigen::MatrixX2d &H) const
 Actually applies the mapping and evaluates the derivatives w.r.t the fitted parameters. More...
 
void transformPosAndErrors (const FatPoint &where, FatPoint &outPoint) const
 The same as above but without the parameter derivatives (used to evaluate chi^2) More...
 
void offsetParams (const double *delta)
 Remember the error scale and freeze it. More...
 
const GtransfogetTransfo1 () const
 access to transfos More...
 
const GtransfogetTransfo2 () const
 access to transfos More...
 
void positionDerivative (const Point &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.

Member Function Documentation

void lsst::jointcal::TwoTransfoMapping::computeTransformAndDerivatives ( const FatPoint 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.

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

access to transfos

Definition at line 50 of file TwoTransfoMapping.h.

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

access to transfos

Definition at line 53 of file TwoTransfoMapping.h.

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

Remember the error scale and freeze it.

Implements lsst::jointcal::Mapping.

Definition at line 44 of file TwoTransfoMapping.h.

void lsst::jointcal::TwoTransfoMapping::positionDerivative ( const Point 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 ( const FatPoint 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 62 of file TwoTransfoMapping.h.


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