gastro  0.1.0
 All Classes Files Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
SimpleGtransfoMapping Class Reference

Class for a simple mapping implementing a generic Gtransfo. More...

#include <simplepolymapping.h>

Inheritance diagram for SimpleGtransfoMapping:
Mapping

Public Member Functions

 SimpleGtransfoMapping (const Gtransfo &T, bool ToFit=true)
 
unsigned Npar () const
 Mumber of parameters in total.
 
void GetMappingIndices (std::vector< unsigned > &Indices) const
 Provides for this parameter set (of length Npar()) how they map into the "grand" fit.
 
void TransformPosAndErrors (const FatPoint &Where, FatPoint &OutPos) const
 The same as above but without the parameter derivatives (used to evaluate chi^2)
 
void PosDerivative (Point &Where, Eigen::Matrix2d &Der, const double &Eps) const
 The derivative w.r.t. position.
 
void OffsetParams (const double *Delta)
 
unsigned Index () const
 position of the parameters within the grand fitting scheme
 
void SetIndex (unsigned I)
 
virtual void ComputeTransformAndDerivatives (const FatPoint &Where, FatPoint &OutPos, Eigen::MatrixX2d &H) const
 Actually applies the mapping and evaluates the derivatives w.r.t the fitted parameters. More...
 
const Gtransfo & Transfo () const
 Access to the (fitted) transfo.
 

Protected Attributes

bool toFit
 
unsigned index
 
CountedRef< Gtransfo > transfo
 
std::auto_ptr< GtransfoLin > lin
 

Detailed Description

Class for a simple mapping implementing a generic Gtransfo.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transfo. The class simplePolyMapping overloads a few routines.

Member Function Documentation

virtual void SimpleGtransfoMapping::ComputeTransformAndDerivatives ( const FatPoint &  Where,
FatPoint &  OutPos,
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 Mapping.


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