lsst.jointcal  15.0-11-gda8ddd7
Public Member Functions | Protected Attributes | List of all members
lsst::jointcal::SimplePolyMapping Class Reference

Mapping implementation for a polynomial transformation. More...

#include <SimpleAstrometryMapping.h>

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

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 freezeErrorTransform ()
 
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)
 
bool getToBeFit () const
 Get whether this mapping is fit as part of a Model. More...
 
void setToBeFit (bool value)
 Set whether this Mapping is to be fit as part of a Model. More...
 

Protected Attributes

bool toBeFit
 
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 121 of file SimpleAstrometryMapping.h.

Constructor & Destructor Documentation

◆ ~SimplePolyMapping()

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

Definition at line 123 of file SimpleAstrometryMapping.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 128 of file SimpleAstrometryMapping.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 173 of file SimpleAstrometryMapping.h.

◆ freezeErrorTransform()

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

Definition at line 35 of file SimpleAstrometryMapping.h.

◆ getIndex()

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

position of the parameters within the grand fitting scheme

Definition at line 87 of file SimpleAstrometryMapping.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::AstrometryMapping.

Definition at line 51 of file SimpleAstrometryMapping.h.

◆ getNpar()

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

Number of parameters in total.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 43 of file SimpleAstrometryMapping.h.

◆ getToBeFit()

bool lsst::jointcal::SimpleGtransfoMapping::getToBeFit ( ) const
inlineinherited

Get whether this mapping is fit as part of a Model.

Definition at line 102 of file SimpleAstrometryMapping.h.

◆ getTransfo()

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

Access to the (fitted) transfo.

Reimplemented from lsst::jointcal::SimpleGtransfoMapping.

Definition at line 199 of file SimpleAstrometryMapping.h.

◆ offsetParams()

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

Remember the error scale and freeze it.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 82 of file SimpleAstrometryMapping.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 153 of file SimpleAstrometryMapping.h.

◆ setIndex()

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

Definition at line 90 of file SimpleAstrometryMapping.h.

◆ setToBeFit()

void lsst::jointcal::SimpleGtransfoMapping::setToBeFit ( bool  value)
inlineinherited

Set whether this Mapping is to be fit as part of a Model.

Definition at line 104 of file SimpleAstrometryMapping.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 187 of file SimpleAstrometryMapping.h.

Member Data Documentation

◆ errorProp

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

Definition at line 114 of file SimpleAstrometryMapping.h.

◆ index

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

Definition at line 109 of file SimpleAstrometryMapping.h.

◆ lin

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

Definition at line 117 of file SimpleAstrometryMapping.h.

◆ toBeFit

bool lsst::jointcal::SimpleGtransfoMapping::toBeFit
protectedinherited

Definition at line 108 of file SimpleAstrometryMapping.h.

◆ transfo

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

Definition at line 112 of file SimpleAstrometryMapping.h.


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