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

Mapping implementation for a polynomial transformation. More...

#include <SimplePolyMapping.h>

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

Public Member Functions

 ~SimplePolyMapping ()
 
 SimplePolyMapping (GtransfoLin const &CenterAndScale, GtransfoPoly const &gtransfo)
 The transformation will be initialized to gtransfo, so that the effective transformation reads gtransfo*CenterAndScale. More...
 
 SimplePolyMapping (SimplePolyMapping const &)=delete
 No copy or move: there is only ever one instance of a given mapping (i.e.. per ccd+visit) More...
 
 SimplePolyMapping (SimplePolyMapping &&)=delete
 
SimplePolyMappingoperator= (SimplePolyMapping const &)=delete
 
SimplePolyMappingoperator= (SimplePolyMapping &&)=delete
 
void positionDerivative (Point const &where, Eigen::Matrix2d &derivative, double epsilon) const
 The derivative w.r.t. position. More...
 
virtual void computeTransformAndDerivatives (FatPoint const &where, FatPoint &outPoint, Eigen::MatrixX2d &H) const
 Calls the transforms and implements the centering and scaling of coordinates. More...
 
void transformPosAndErrors (FatPoint const &where, FatPoint &outPoint) const
 Implements as well the centering and scaling of coordinates. More...
 
Gtransfo const & getTransfo () const
 Access to the (fitted) transfo. More...
 
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 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)
 

Protected Attributes

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

Detailed Description

Mapping implementation for a polynomial transformation.

Definition at line 113 of file SimplePolyMapping.h.

Constructor & Destructor Documentation

◆ ~SimplePolyMapping()

lsst::jointcal::SimplePolyMapping::~SimplePolyMapping ( )
inline

Definition at line 115 of file SimplePolyMapping.h.

◆ SimplePolyMapping() [1/3]

lsst::jointcal::SimplePolyMapping::SimplePolyMapping ( GtransfoLin const &  CenterAndScale,
GtransfoPoly const &  gtransfo 
)
inline

The transformation will be initialized to gtransfo, so that the effective transformation reads gtransfo*CenterAndScale.

Definition at line 120 of file SimplePolyMapping.h.

◆ SimplePolyMapping() [2/3]

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

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

◆ SimplePolyMapping() [3/3]

lsst::jointcal::SimplePolyMapping::SimplePolyMapping ( SimplePolyMapping &&  )
delete

Member Function Documentation

◆ computeTransformAndDerivatives()

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

Calls the transforms and implements the centering and scaling of coordinates.

Reimplemented from lsst::jointcal::SimpleGtransfoMapping.

Definition at line 165 of file SimplePolyMapping.h.

◆ freezeErrorScales()

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

Definition at line 35 of file SimplePolyMapping.h.

◆ getIndex()

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

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
inlinevirtualinherited

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
inlinevirtualinherited

Number of parameters in total.

Implements lsst::jointcal::Mapping.

Definition at line 43 of file SimplePolyMapping.h.

◆ getTransfo()

Gtransfo const& lsst::jointcal::SimplePolyMapping::getTransfo ( ) const
inlinevirtual

Access to the (fitted) transfo.

Reimplemented from lsst::jointcal::SimpleGtransfoMapping.

Definition at line 191 of file SimplePolyMapping.h.

◆ offsetParams()

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

Remember the error scale and freeze it.

Implements lsst::jointcal::Mapping.

Definition at line 82 of file SimplePolyMapping.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionDerivative()

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

The derivative w.r.t. position.

Reimplemented from lsst::jointcal::SimpleGtransfoMapping.

Definition at line 145 of file SimplePolyMapping.h.

◆ setIndex()

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

Definition at line 88 of file SimplePolyMapping.h.

◆ transformPosAndErrors()

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

Implements as well the centering and scaling of coordinates.

Reimplemented from lsst::jointcal::SimpleGtransfoMapping.

Definition at line 179 of file SimplePolyMapping.h.

Member Data Documentation

◆ errorProp

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

Definition at line 106 of file SimplePolyMapping.h.

◆ index

unsigned lsst::jointcal::SimpleGtransfoMapping::index
protectedinherited

Definition at line 101 of file SimplePolyMapping.h.

◆ lin

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

Definition at line 109 of file SimplePolyMapping.h.

◆ toFit

bool lsst::jointcal::SimpleGtransfoMapping::toFit
protectedinherited

Definition at line 100 of file SimplePolyMapping.h.

◆ transfo

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

Definition at line 104 of file SimplePolyMapping.h.


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