lsst.jointcal  master-gc935ebf72c+13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 (const Gtransfo &gtransfo, bool toFit=true)
 
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 transformPosAndErrors (const FatPoint &where, FatPoint &outPoint) const
 The same as above but without the parameter derivatives (used to evaluate chi^2) More...
 
void positionDerivative (const Point &where, Eigen::Matrix2d &derivative, double epsilon) const
 The derivative w.r.t. position. More...
 
void offsetParams (const double *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 (const FatPoint &where, FatPoint &outPoint, Eigen::MatrixX2d &H) const
 Actually applies the mapping and evaluates the derivatives w.r.t the fitted parameters. More...
 
virtual const GtransfogetTransfo () const
 Access to the (fitted) transfo. More...
 
- Public Member Functions inherited from lsst::jointcal::Mapping
virtual ~Mapping ()
 

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

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

Definition at line 33 of file SimplePolyMapping.h.

Member Function Documentation

virtual void lsst::jointcal::SimpleGtransfoMapping::computeTransformAndDerivatives ( const FatPoint 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 96 of file SimplePolyMapping.h.

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

Definition at line 41 of file SimplePolyMapping.h.

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

position of the parameters within the grand fitting scheme

Definition at line 91 of file SimplePolyMapping.h.

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

Number of parameters in total.

Implements lsst::jointcal::Mapping.

Definition at line 49 of file SimplePolyMapping.h.

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

Access to the (fitted) transfo.

Reimplemented in lsst::jointcal::SimplePolyMapping.

Definition at line 103 of file SimplePolyMapping.h.

void lsst::jointcal::SimpleGtransfoMapping::offsetParams ( const double *  delta)
inlinevirtual

Remember the error scale and freeze it.

Implements lsst::jointcal::Mapping.

Definition at line 88 of file SimplePolyMapping.h.

void lsst::jointcal::SimpleGtransfoMapping::positionDerivative ( const Point 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 73 of file SimplePolyMapping.h.

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

Definition at line 94 of file SimplePolyMapping.h.

void lsst::jointcal::SimpleGtransfoMapping::setMappingIndices ( 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 57 of file SimplePolyMapping.h.

void lsst::jointcal::SimpleGtransfoMapping::transformPosAndErrors ( const FatPoint 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 63 of file SimplePolyMapping.h.

Member Data Documentation

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

Definition at line 27 of file SimplePolyMapping.h.

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

Definition at line 22 of file SimplePolyMapping.h.

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

Definition at line 30 of file SimplePolyMapping.h.

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

Definition at line 21 of file SimplePolyMapping.h.

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

Definition at line 25 of file SimplePolyMapping.h.


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