lsst.jointcal  master-g9041cab851+8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
lsst::jointcal::PhotometryMapping Class Reference

#include <PhotometryMapping.h>

Public Member Functions

 PhotometryMapping (PhotometryTransfo const &_transfo)
 
 PhotometryMapping (PhotometryMapping const &)=delete
 No copy or move: there is only ever one instance of a given mapping (i.e. per ccd+visit) More...
 
 PhotometryMapping (PhotometryMapping &&)=delete
 
PhotometryMappingoperator= (PhotometryMapping const &)=delete
 
PhotometryMappingoperator= (PhotometryMapping &&)=delete
 
unsigned getNpar () const
 Number of total parameters in this mapping. More...
 
void setMappingIndices (std::vector< unsigned > &indices) const
 
void computeTransformAndDerivatives (Point const &where, double &out, Eigen::MatrixX2d &H) const
 Applies the mapping and evaluates the derivatives with respect to the fitted parameters. More...
 
void transformPosAndErrors (Point const &where, double &out) const
 The same as above but without the parameter derivatives (used to evaluate chi^2) More...
 
void offsetParams (const double *delta)
 
unsigned getIndex ()
 Get the index of this mapping in the grand fit. More...
 
void setIndex (unsigned i)
 Set the index of this mapping in the grand fit. More...
 
PhotometryTransfo const & getTransfo ()
 

Protected Attributes

unsigned index
 
std::shared_ptr
< PhotometryTransfo
transfo
 

Detailed Description

Definition at line 16 of file PhotometryMapping.h.

Constructor & Destructor Documentation

lsst::jointcal::PhotometryMapping::PhotometryMapping ( PhotometryTransfo const &  _transfo)
inlineexplicit

Definition at line 18 of file PhotometryMapping.h.

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

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

lsst::jointcal::PhotometryMapping::PhotometryMapping ( PhotometryMapping &&  )
delete

Member Function Documentation

void lsst::jointcal::PhotometryMapping::computeTransformAndDerivatives ( Point const &  where,
double &  out,
Eigen::MatrixX2d H 
) const

Applies the mapping and evaluates the derivatives with respect to 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.

unsigned lsst::jointcal::PhotometryMapping::getIndex ( )
inline

Get the index of this mapping in the grand fit.

Definition at line 54 of file PhotometryMapping.h.

unsigned lsst::jointcal::PhotometryMapping::getNpar ( ) const
inline

Number of total parameters in this mapping.

Definition at line 27 of file PhotometryMapping.h.

PhotometryTransfo const& lsst::jointcal::PhotometryMapping::getTransfo ( )
inline

Definition at line 59 of file PhotometryMapping.h.

void lsst::jointcal::PhotometryMapping::offsetParams ( const double *  delta)
inline

Definition at line 51 of file PhotometryMapping.h.

PhotometryMapping& lsst::jointcal::PhotometryMapping::operator= ( PhotometryMapping const &  )
delete
PhotometryMapping& lsst::jointcal::PhotometryMapping::operator= ( PhotometryMapping &&  )
delete
void lsst::jointcal::PhotometryMapping::setIndex ( unsigned  i)
inline

Set the index of this mapping in the grand fit.

Definition at line 57 of file PhotometryMapping.h.

void lsst::jointcal::PhotometryMapping::setMappingIndices ( std::vector< unsigned > &  indices) const
inline

Definition at line 33 of file PhotometryMapping.h.

void lsst::jointcal::PhotometryMapping::transformPosAndErrors ( Point const &  where,
double &  out 
) const

The same as above but without the parameter derivatives (used to evaluate chi^2)

Member Data Documentation

unsigned lsst::jointcal::PhotometryMapping::index
protected

Definition at line 63 of file PhotometryMapping.h.

std::shared_ptr<PhotometryTransfo> lsst::jointcal::PhotometryMapping::transfo
protected

Definition at line 66 of file PhotometryMapping.h.


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