lsst.jointcal  master-g52a623bc1f+2
Public Member Functions | List of all members
lsst::jointcal::PhotometryTransfo Class Referenceabstract

#include <PhotometryTransfo.h>

Inheritance diagram for lsst::jointcal::PhotometryTransfo:
lsst::jointcal::PhotometryTransfoSpatiallyInvariant

Public Member Functions

virtual double apply (double x, double y, double instFlux) const =0
 Apply the transform to instFlux at (x,y), put result in flux. More...
 
double apply (Point const &in, double instFlux) const
 
virtual void dump (std::ostream &stream=std::cout) const =0
 dumps the transfo coefficients to stream. More...
 
std::string __str__ () const
 Return a string describing this transfo. For the pybind11/python layer. More...
 
virtual int getNpar () const
 Return the number of parameters (used to compute chisq) More...
 
virtual void offsetParams (double const *delta)=0
 Offset the parameters by some amount during fitting. More...
 
virtual std::unique_ptr< PhotometryTransfoclone () const =0
 return a copy (allocated by new) of the transformation. More...
 
void computeDerivative (Point const &where, PhotometryTransfoSpatiallyInvariant &derivative, const double step=0.01) const
 

Detailed Description

Definition at line 28 of file PhotometryTransfo.h.

Member Function Documentation

◆ __str__()

std::string lsst::jointcal::PhotometryTransfo::__str__ ( ) const
inline

Return a string describing this transfo. For the pybind11/python layer.

Definition at line 39 of file PhotometryTransfo.h.

◆ apply() [1/2]

virtual double lsst::jointcal::PhotometryTransfo::apply ( double  x,
double  y,
double  instFlux 
) const
pure virtual

Apply the transform to instFlux at (x,y), put result in flux.

Implemented in lsst::jointcal::PhotometryTransfoSpatiallyInvariant.

◆ apply() [2/2]

double lsst::jointcal::PhotometryTransfo::apply ( Point const &  in,
double  instFlux 
) const
inline

Definition at line 33 of file PhotometryTransfo.h.

◆ clone()

virtual std::unique_ptr<PhotometryTransfo> lsst::jointcal::PhotometryTransfo::clone ( ) const
pure virtual

return a copy (allocated by new) of the transformation.

Implemented in lsst::jointcal::PhotometryTransfoSpatiallyInvariant.

◆ computeDerivative()

void lsst::jointcal::PhotometryTransfo::computeDerivative ( Point const &  where,
PhotometryTransfoSpatiallyInvariant derivative,
const double  step = 0.01 
) const

◆ dump()

virtual void lsst::jointcal::PhotometryTransfo::dump ( std::ostream &  stream = std::cout) const
pure virtual

dumps the transfo coefficients to stream.

Implemented in lsst::jointcal::PhotometryTransfoSpatiallyInvariant.

◆ getNpar()

virtual int lsst::jointcal::PhotometryTransfo::getNpar ( ) const
inlinevirtual

Return the number of parameters (used to compute chisq)

Reimplemented in lsst::jointcal::PhotometryTransfoSpatiallyInvariant.

Definition at line 46 of file PhotometryTransfo.h.

◆ offsetParams()

virtual void lsst::jointcal::PhotometryTransfo::offsetParams ( double const *  delta)
pure virtual

Offset the parameters by some amount during fitting.

Implemented in lsst::jointcal::PhotometryTransfoSpatiallyInvariant.


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