LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Private Attributes | List of all members
lsst::meas::algorithms::MinimizeChi2< PixelT > Class Template Reference
Inheritance diagram for lsst::meas::algorithms::MinimizeChi2< PixelT >:

Public Member Functions

 MinimizeChi2 (evalChi2Visitor< PixelT > &chi2Visitor, afwMath::Kernel *kernel, afwMath::SpatialCellSet const &psfCells, int nStarPerCell, int nComponents, int nSpatialParams)
 
double Up () const
 
double operator() (const std::vector< double > &coeffs) const
 
void setErrorDef (double def)
 

Private Attributes

double _errorDef
 
evalChi2Visitor< PixelT > & _chi2Visitor
 
afwMath::Kernel_kernel
 
afwMath::SpatialCellSet const & _psfCells
 
int _nStarPerCell
 
int _nComponents
 
int _nSpatialParams
 

Detailed Description

template<typename PixelT>
class lsst::meas::algorithms::MinimizeChi2< PixelT >

Definition at line 570 of file SpatialModelPsf.cc.

Constructor & Destructor Documentation

template<typename PixelT>
lsst::meas::algorithms::MinimizeChi2< PixelT >::MinimizeChi2 ( evalChi2Visitor< PixelT > &  chi2Visitor,
afwMath::Kernel kernel,
afwMath::SpatialCellSet const &  psfCells,
int  nStarPerCell,
int  nComponents,
int  nSpatialParams 
)
inlineexplicit

Definition at line 572 of file SpatialModelPsf.cc.

578  : _errorDef(1.0),
579  _chi2Visitor(chi2Visitor),
580  _kernel(kernel),
581  _psfCells(psfCells),
582  _nStarPerCell(nStarPerCell),
583  _nComponents(nComponents),
584  _nSpatialParams(nSpatialParams) {}
evalChi2Visitor< PixelT > & _chi2Visitor
afwMath::SpatialCellSet const & _psfCells

Member Function Documentation

template<typename PixelT>
double lsst::meas::algorithms::MinimizeChi2< PixelT >::operator() ( const std::vector< double > &  coeffs) const
inline

Definition at line 595 of file SpatialModelPsf.cc.

595  {
596  setSpatialParameters(_kernel, coeffs);
597 
599 
600  return _chi2Visitor.getValue();
601  }
evalChi2Visitor< PixelT > & _chi2Visitor
void setSpatialParameters(afwMath::Kernel *kernel, std::vector< double > const &coeffs)
afwMath::SpatialCellSet const & _psfCells
void visitCandidates(CandidateVisitor *visitor, int const nMaxPerCell=-1, bool const ignoreExceptions=false)
Definition: SpatialCell.cc:510
template<typename PixelT>
void lsst::meas::algorithms::MinimizeChi2< PixelT >::setErrorDef ( double  def)
inline

Definition at line 603 of file SpatialModelPsf.cc.

template<typename PixelT>
double lsst::meas::algorithms::MinimizeChi2< PixelT >::Up ( ) const
inline

Error definition of the function. MINUIT defines Parameter errors as the change in Parameter Value required to change the function Value by up. Normally, for chisquared fits it is 1, and for negative log likelihood, its Value is 0.5. If the user wants instead the 2-sigma errors for chisquared fits, it becomes 4,

Definition at line 592 of file SpatialModelPsf.cc.

Member Data Documentation

template<typename PixelT>
evalChi2Visitor<PixelT>& lsst::meas::algorithms::MinimizeChi2< PixelT >::_chi2Visitor
private

Definition at line 607 of file SpatialModelPsf.cc.

template<typename PixelT>
double lsst::meas::algorithms::MinimizeChi2< PixelT >::_errorDef
private

Definition at line 605 of file SpatialModelPsf.cc.

template<typename PixelT>
afwMath::Kernel* lsst::meas::algorithms::MinimizeChi2< PixelT >::_kernel
private

Definition at line 608 of file SpatialModelPsf.cc.

template<typename PixelT>
int lsst::meas::algorithms::MinimizeChi2< PixelT >::_nComponents
private

Definition at line 611 of file SpatialModelPsf.cc.

template<typename PixelT>
int lsst::meas::algorithms::MinimizeChi2< PixelT >::_nSpatialParams
private

Definition at line 612 of file SpatialModelPsf.cc.

template<typename PixelT>
int lsst::meas::algorithms::MinimizeChi2< PixelT >::_nStarPerCell
private

Definition at line 610 of file SpatialModelPsf.cc.

template<typename PixelT>
afwMath::SpatialCellSet const& lsst::meas::algorithms::MinimizeChi2< PixelT >::_psfCells
private

Definition at line 609 of file SpatialModelPsf.cc.


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