lsst.jointcal  16.0-27-ge118ca2+5
Public Member Functions | Protected Attributes | List of all members
lsst::jointcal::SimpleAstrometryMapping Class Reference

#include <SimpleAstrometryMapping.h>

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

Public Member Functions

 SimpleAstrometryMapping (AstrometryTransform const &astrometryTransform, bool toBeFit=true)
 
 SimpleAstrometryMapping (SimpleAstrometryMapping const &)=delete
 No copy or move: there is only ever one instance of a given mapping (i.e.. per ccd+visit) More...
 
 SimpleAstrometryMapping (SimpleAstrometryMapping &&)=delete
 
SimpleAstrometryMappingoperator= (SimpleAstrometryMapping const &)=delete
 
SimpleAstrometryMappingoperator= (SimpleAstrometryMapping &&)=delete
 
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 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 AstrometryMapping and evaluates the derivatives w.r.t the fitted parameters. More...
 
virtual AstrometryTransform const & getTransform () const
 Access to the (fitted) transform. More...
 
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< AstrometryTransformtransform
 
std::shared_ptr< AstrometryTransformerrorProp
 
std::unique_ptr< AstrometryTransformLinearlin
 

Detailed Description

Definition at line 42 of file SimpleAstrometryMapping.h.

Constructor & Destructor Documentation

◆ SimpleAstrometryMapping() [1/3]

lsst::jointcal::SimpleAstrometryMapping::SimpleAstrometryMapping ( AstrometryTransform const &  astrometryTransform,
bool  toBeFit = true 
)
inline

Definition at line 44 of file SimpleAstrometryMapping.h.

◆ SimpleAstrometryMapping() [2/3]

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

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

◆ SimpleAstrometryMapping() [3/3]

lsst::jointcal::SimpleAstrometryMapping::SimpleAstrometryMapping ( SimpleAstrometryMapping &&  )
delete

Member Function Documentation

◆ computeTransformAndDerivatives()

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

Actually applies the AstrometryMapping 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::AstrometryMapping.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 118 of file SimpleAstrometryMapping.h.

◆ freezeErrorTransform()

virtual void lsst::jointcal::SimpleAstrometryMapping::freezeErrorTransform ( )
inlinevirtual

Definition at line 61 of file SimpleAstrometryMapping.h.

◆ getIndex()

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

position of the parameters within the grand fitting scheme

Definition at line 113 of file SimpleAstrometryMapping.h.

◆ getMappingIndices()

void lsst::jointcal::SimpleAstrometryMapping::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::AstrometryMapping.

Definition at line 77 of file SimpleAstrometryMapping.h.

◆ getNpar()

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

Number of parameters in total.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 69 of file SimpleAstrometryMapping.h.

◆ getToBeFit()

bool lsst::jointcal::SimpleAstrometryMapping::getToBeFit ( ) const
inline

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

Definition at line 128 of file SimpleAstrometryMapping.h.

◆ getTransform()

virtual AstrometryTransform const& lsst::jointcal::SimpleAstrometryMapping::getTransform ( ) const
inlinevirtual

Access to the (fitted) transform.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 125 of file SimpleAstrometryMapping.h.

◆ offsetParams()

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

Remember the error scale and freeze it.

Implements lsst::jointcal::AstrometryMapping.

Definition at line 108 of file SimpleAstrometryMapping.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionDerivative()

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

The derivative w.r.t. position.

Implements lsst::jointcal::AstrometryMapping.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 93 of file SimpleAstrometryMapping.h.

◆ setIndex()

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

Definition at line 116 of file SimpleAstrometryMapping.h.

◆ setToBeFit()

void lsst::jointcal::SimpleAstrometryMapping::setToBeFit ( bool  value)
inline

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

Definition at line 130 of file SimpleAstrometryMapping.h.

◆ transformPosAndErrors()

void lsst::jointcal::SimpleAstrometryMapping::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::AstrometryMapping.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 83 of file SimpleAstrometryMapping.h.

Member Data Documentation

◆ errorProp

std::shared_ptr<AstrometryTransform> lsst::jointcal::SimpleAstrometryMapping::errorProp
protected

Definition at line 140 of file SimpleAstrometryMapping.h.

◆ index

unsigned lsst::jointcal::SimpleAstrometryMapping::index
protected

Definition at line 135 of file SimpleAstrometryMapping.h.

◆ lin

std::unique_ptr<AstrometryTransformLinear> lsst::jointcal::SimpleAstrometryMapping::lin
protected

Definition at line 143 of file SimpleAstrometryMapping.h.

◆ toBeFit

bool lsst::jointcal::SimpleAstrometryMapping::toBeFit
protected

Definition at line 134 of file SimpleAstrometryMapping.h.

◆ transform

std::shared_ptr<AstrometryTransform> lsst::jointcal::SimpleAstrometryMapping::transform
protected

Definition at line 138 of file SimpleAstrometryMapping.h.


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