lsst.jointcal  14.0-17-ge3cc87b+11
Public Member Functions | Protected Attributes | List of all members
lsst::jointcal::SimpleGtransfoMapping Class Reference

#include <SimplePolyMapping.h>

Inheritance diagram for lsst::jointcal::SimpleGtransfoMapping:
lsst::jointcal::Mapping lsst::jointcal::SimplePolyMapping

Public Member Functions

 SimpleGtransfoMapping (Gtransfo const &gtransfo, bool toFit=true)
 
 SimpleGtransfoMapping (SimpleGtransfoMapping const &)=delete
 No copy or move: there is only ever one instance of a given mapping (i.e.. per ccd+visit) More...
 
 SimpleGtransfoMapping (SimpleGtransfoMapping &&)=delete
 
SimpleGtransfoMappingoperator= (SimpleGtransfoMapping const &)=delete
 
SimpleGtransfoMappingoperator= (SimpleGtransfoMapping &&)=delete
 
virtual void freezeErrorScales ()
 
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 transformPosAndErrors (FatPoint const &where, FatPoint &outPoint) const
 The same as above but without the parameter derivatives (used to evaluate chi^2) More...
 
void positionDerivative (Point const &where, Eigen::Matrix2d &derivative, double epsilon) const
 The derivative w.r.t. position. More...
 
void offsetParams (Eigen::VectorXd const &delta)
 Remember the error scale and freeze it. More...
 
unsigned getIndex () const
 position of the parameters within the grand fitting scheme More...
 
void setIndex (unsigned i)
 
virtual 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...
 
virtual Gtransfo const & getTransfo () const
 Access to the (fitted) transfo. More...
 

Protected Attributes

bool toFit
 
unsigned index
 
std::shared_ptr< Gtransfotransfo
 
std::shared_ptr< GtransfoerrorProp
 
std::unique_ptr< GtransfoLinlin
 

Detailed Description

Definition at line 19 of file SimplePolyMapping.h.

Constructor & Destructor Documentation

◆ SimpleGtransfoMapping() [1/3]

lsst::jointcal::SimpleGtransfoMapping::SimpleGtransfoMapping ( Gtransfo const &  gtransfo,
bool  toFit = true 
)
inline

Definition at line 21 of file SimplePolyMapping.h.

◆ SimpleGtransfoMapping() [2/3]

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

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

◆ SimpleGtransfoMapping() [3/3]

lsst::jointcal::SimpleGtransfoMapping::SimpleGtransfoMapping ( SimpleGtransfoMapping &&  )
delete

Member Function Documentation

◆ computeTransformAndDerivatives()

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

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.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 90 of file SimplePolyMapping.h.

◆ freezeErrorScales()

virtual void lsst::jointcal::SimpleGtransfoMapping::freezeErrorScales ( )
inlinevirtual

Definition at line 35 of file SimplePolyMapping.h.

◆ getIndex()

unsigned lsst::jointcal::SimpleGtransfoMapping::getIndex ( ) const
inline

position of the parameters within the grand fitting scheme

Definition at line 85 of file SimplePolyMapping.h.

◆ getMappingIndices()

void lsst::jointcal::SimpleGtransfoMapping::getMappingIndices ( std::vector< unsigned > &  indices) const
inlinevirtual

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 51 of file SimplePolyMapping.h.

◆ getNpar()

unsigned lsst::jointcal::SimpleGtransfoMapping::getNpar ( ) const
inlinevirtual

Number of parameters in total.

Implements lsst::jointcal::Mapping.

Definition at line 43 of file SimplePolyMapping.h.

◆ getTransfo()

virtual Gtransfo const& lsst::jointcal::SimpleGtransfoMapping::getTransfo ( ) const
inlinevirtual

Access to the (fitted) transfo.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 97 of file SimplePolyMapping.h.

◆ offsetParams()

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

Remember the error scale and freeze it.

Implements lsst::jointcal::Mapping.

Definition at line 82 of file SimplePolyMapping.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionDerivative()

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

The derivative w.r.t. position.

Implements lsst::jointcal::Mapping.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 67 of file SimplePolyMapping.h.

◆ setIndex()

void lsst::jointcal::SimpleGtransfoMapping::setIndex ( unsigned  i)
inline

Definition at line 88 of file SimplePolyMapping.h.

◆ transformPosAndErrors()

void lsst::jointcal::SimpleGtransfoMapping::transformPosAndErrors ( FatPoint const &  where,
FatPoint outPoint 
) const
inlinevirtual

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

Implements lsst::jointcal::Mapping.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 57 of file SimplePolyMapping.h.

Member Data Documentation

◆ errorProp

std::shared_ptr<Gtransfo> lsst::jointcal::SimpleGtransfoMapping::errorProp
protected

Definition at line 106 of file SimplePolyMapping.h.

◆ index

unsigned lsst::jointcal::SimpleGtransfoMapping::index
protected

Definition at line 101 of file SimplePolyMapping.h.

◆ lin

std::unique_ptr<GtransfoLin> lsst::jointcal::SimpleGtransfoMapping::lin
protected

Definition at line 109 of file SimplePolyMapping.h.

◆ toFit

bool lsst::jointcal::SimpleGtransfoMapping::toFit
protected

Definition at line 100 of file SimplePolyMapping.h.

◆ transfo

std::shared_ptr<Gtransfo> lsst::jointcal::SimpleGtransfoMapping::transfo
protected

Definition at line 104 of file SimplePolyMapping.h.


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