lsst.jointcal  master-g9041cab851+12
Public Member Functions | 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...
 
- Public Member Functions inherited from lsst::jointcal::SimpleGtransfoMapping
 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 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 offsetParams (double 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)
 
- Public Member Functions inherited from lsst::jointcal::Mapping
virtual ~Mapping ()
 

Additional Inherited Members

- Protected Attributes inherited from lsst::jointcal::SimpleGtransfoMapping
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 124 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 129 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 174 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 200 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 154 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 188 of file SimplePolyMapping.h.


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