lsst.ip.diffim  14.0-9-g330837b+2
Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | List of all members
lsst::ip::diffim::SpatialKernelSolution Class Reference

#include <KernelSolution.h>

Inheritance diagram for lsst::ip::diffim::SpatialKernelSolution:
lsst::ip::diffim::KernelSolution

Public Types

typedef std::shared_ptr< SpatialKernelSolutionPtr
 
enum  KernelSolvedBy {
  NONE = 0, CHOLESKY_LDLT = 1, CHOLESKY_LLT = 2, LU = 3,
  EIGENVECTOR = 4
}
 
enum  ConditionNumberType { EIGENVALUE = 0, SVD = 1 }
 
typedef lsst::afw::math::Kernel::Pixel PixelT
 
typedef lsst::afw::image::Image< lsst::afw::math::Kernel::PixelImageT
 

Public Member Functions

 SpatialKernelSolution (lsst::afw::math::KernelList const &basisList, lsst::afw::math::Kernel::SpatialFunctionPtr spatialKernelFunction, lsst::afw::math::Kernel::SpatialFunctionPtr background, lsst::pex::policy::Policy policy)
 
virtual ~SpatialKernelSolution ()
 
void addConstraint (float xCenter, float yCenter, Eigen::MatrixXd const &qMat, Eigen::VectorXd const &wVec)
 
void solve ()
 
std::shared_ptr< lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > > makeKernelImage (lsst::afw::geom::Point2D const &pos)
 
std::pair< std::shared_ptr< lsst::afw::math::LinearCombinationKernel >, lsst::afw::math::Kernel::SpatialFunctionPtrgetSolutionPair ()
 
virtual void solve (Eigen::MatrixXd const &mMat, Eigen::VectorXd const &bVec)
 
KernelSolvedBy getSolvedBy ()
 
virtual double getConditionNumber (ConditionNumberType conditionType)
 
virtual double getConditionNumber (Eigen::MatrixXd const &mMat, ConditionNumberType conditionType)
 
Eigen::MatrixXd const & getM ()
 
Eigen::VectorXd const & getB ()
 
void printM ()
 
void printB ()
 
void printA ()
 
int getId () const
 

Protected Attributes

int _id
 Unique ID for object. More...
 
Eigen::MatrixXd _mMat
 Derived least squares M matrix. More...
 
Eigen::VectorXd _bVec
 Derived least squares B vector. More...
 
Eigen::VectorXd _aVec
 Derived least squares solution matrix. More...
 
KernelSolvedBy _solvedBy
 Type of algorithm used to make solution. More...
 
bool _fitForBackground
 Background terms included in fit. More...
 

Static Protected Attributes

static int _SolutionId = 0
 Unique identifier for solution. More...
 

Private Member Functions

void _setKernel ()
 Set kernel after solution. More...
 
void _setKernelUncertainty ()
 Not implemented. More...
 

Private Attributes

lsst::afw::math::Kernel::SpatialFunctionPtr _spatialKernelFunction
 Spatial function for Kernel. More...
 
bool _constantFirstTerm
 Is the first term constant. More...
 
std::shared_ptr< lsst::afw::math::LinearCombinationKernel_kernel
 Spatial convolution kernel. More...
 
lsst::afw::math::Kernel::SpatialFunctionPtr _background
 Spatial background model. More...
 
double _kSum
 Derived kernel sum. More...
 
lsst::pex::policy::Policy _policy
 Policy to control processing. More...
 
int _nbases
 Number of basis functions. More...
 
int _nkt
 Number of kernel terms. More...
 
int _nbt
 Number of background terms. More...
 
int _nt
 Total number of terms. More...
 

Detailed Description

Definition at line 173 of file KernelSolution.h.

Member Typedef Documentation

◆ ImageT

Definition at line 34 of file KernelSolution.h.

◆ PixelT

Definition at line 33 of file KernelSolution.h.

◆ Ptr

Definition at line 175 of file KernelSolution.h.

Member Enumeration Documentation

◆ ConditionNumberType

Enumerator
EIGENVALUE 
SVD 

Definition at line 44 of file KernelSolution.h.

◆ KernelSolvedBy

Enumerator
NONE 
CHOLESKY_LDLT 
CHOLESKY_LLT 
LU 
EIGENVECTOR 

Definition at line 36 of file KernelSolution.h.

Constructor & Destructor Documentation

◆ SpatialKernelSolution()

lsst::ip::diffim::SpatialKernelSolution::SpatialKernelSolution ( lsst::afw::math::KernelList const &  basisList,
lsst::afw::math::Kernel::SpatialFunctionPtr  spatialKernelFunction,
lsst::afw::math::Kernel::SpatialFunctionPtr  background,
lsst::pex::policy::Policy  policy 
)

Definition at line 1281 of file KernelSolution.cc.

◆ ~SpatialKernelSolution()

virtual lsst::ip::diffim::SpatialKernelSolution::~SpatialKernelSolution ( )
inlinevirtual

Definition at line 184 of file KernelSolution.h.

Member Function Documentation

◆ _setKernel()

void lsst::ip::diffim::SpatialKernelSolution::_setKernel ( )
private

Set kernel after solution.

Definition at line 1486 of file KernelSolution.cc.

◆ _setKernelUncertainty()

void lsst::ip::diffim::SpatialKernelSolution::_setKernelUncertainty ( )
private

Not implemented.

◆ addConstraint()

void lsst::ip::diffim::SpatialKernelSolution::addConstraint ( float  xCenter,
float  yCenter,
Eigen::MatrixXd const &  qMat,
Eigen::VectorXd const &  wVec 
)

Definition at line 1335 of file KernelSolution.cc.

◆ getB()

Eigen::VectorXd const& lsst::ip::diffim::KernelSolution::getB ( )
inlineinherited

Definition at line 64 of file KernelSolution.h.

◆ getConditionNumber() [1/2]

double lsst::ip::diffim::KernelSolution::getConditionNumber ( ConditionNumberType  conditionType)
virtualinherited

Definition at line 92 of file KernelSolution.cc.

◆ getConditionNumber() [2/2]

double lsst::ip::diffim::KernelSolution::getConditionNumber ( Eigen::MatrixXd const &  mMat,
ConditionNumberType  conditionType 
)
virtualinherited

Definition at line 96 of file KernelSolution.cc.

◆ getId()

int lsst::ip::diffim::KernelSolution::getId ( ) const
inlineinherited

Definition at line 68 of file KernelSolution.h.

◆ getM()

Eigen::MatrixXd const& lsst::ip::diffim::KernelSolution::getM ( )
inlineinherited

Definition at line 63 of file KernelSolution.h.

◆ getSolutionPair()

std::pair< std::shared_ptr< afwMath::LinearCombinationKernel >, afwMath::Kernel::SpatialFunctionPtr > lsst::ip::diffim::SpatialKernelSolution::getSolutionPair ( )

Definition at line 1478 of file KernelSolution.cc.

◆ getSolvedBy()

KernelSolvedBy lsst::ip::diffim::KernelSolution::getSolvedBy ( )
inlineinherited

Definition at line 59 of file KernelSolution.h.

◆ makeKernelImage()

std::shared_ptr< lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > > lsst::ip::diffim::SpatialKernelSolution::makeKernelImage ( lsst::afw::geom::Point2D const &  pos)

Definition at line 1448 of file KernelSolution.cc.

◆ printA()

void lsst::ip::diffim::KernelSolution::printA ( )
inlineinherited

Definition at line 67 of file KernelSolution.h.

◆ printB()

void lsst::ip::diffim::KernelSolution::printB ( )
inlineinherited

Definition at line 66 of file KernelSolution.h.

◆ printM()

void lsst::ip::diffim::KernelSolution::printM ( )
inlineinherited

Definition at line 65 of file KernelSolution.h.

◆ solve() [1/2]

void lsst::ip::diffim::KernelSolution::solve ( Eigen::MatrixXd const &  mMat,
Eigen::VectorXd const &  bVec 
)
virtualinherited

Definition at line 129 of file KernelSolution.cc.

◆ solve() [2/2]

void lsst::ip::diffim::SpatialKernelSolution::solve ( )
virtual

Reimplemented from lsst::ip::diffim::KernelSolution.

Definition at line 1459 of file KernelSolution.cc.

Member Data Documentation

◆ _aVec

Eigen::VectorXd lsst::ip::diffim::KernelSolution::_aVec
protectedinherited

Derived least squares solution matrix.

Definition at line 74 of file KernelSolution.h.

◆ _background

lsst::afw::math::Kernel::SpatialFunctionPtr lsst::ip::diffim::SpatialKernelSolution::_background
private

Spatial background model.

Definition at line 200 of file KernelSolution.h.

◆ _bVec

Eigen::VectorXd lsst::ip::diffim::KernelSolution::_bVec
protectedinherited

Derived least squares B vector.

Definition at line 73 of file KernelSolution.h.

◆ _constantFirstTerm

bool lsst::ip::diffim::SpatialKernelSolution::_constantFirstTerm
private

Is the first term constant.

Definition at line 197 of file KernelSolution.h.

◆ _fitForBackground

bool lsst::ip::diffim::KernelSolution::_fitForBackground
protectedinherited

Background terms included in fit.

Definition at line 76 of file KernelSolution.h.

◆ _id

int lsst::ip::diffim::KernelSolution::_id
protectedinherited

Unique ID for object.

Definition at line 71 of file KernelSolution.h.

◆ _kernel

std::shared_ptr<lsst::afw::math::LinearCombinationKernel> lsst::ip::diffim::SpatialKernelSolution::_kernel
private

Spatial convolution kernel.

Definition at line 199 of file KernelSolution.h.

◆ _kSum

double lsst::ip::diffim::SpatialKernelSolution::_kSum
private

Derived kernel sum.

Definition at line 201 of file KernelSolution.h.

◆ _mMat

Eigen::MatrixXd lsst::ip::diffim::KernelSolution::_mMat
protectedinherited

Derived least squares M matrix.

Definition at line 72 of file KernelSolution.h.

◆ _nbases

int lsst::ip::diffim::SpatialKernelSolution::_nbases
private

Number of basis functions.

Definition at line 204 of file KernelSolution.h.

◆ _nbt

int lsst::ip::diffim::SpatialKernelSolution::_nbt
private

Number of background terms.

Definition at line 206 of file KernelSolution.h.

◆ _nkt

int lsst::ip::diffim::SpatialKernelSolution::_nkt
private

Number of kernel terms.

Definition at line 205 of file KernelSolution.h.

◆ _nt

int lsst::ip::diffim::SpatialKernelSolution::_nt
private

Total number of terms.

Definition at line 207 of file KernelSolution.h.

◆ _policy

lsst::pex::policy::Policy lsst::ip::diffim::SpatialKernelSolution::_policy
private

Policy to control processing.

Definition at line 203 of file KernelSolution.h.

◆ _SolutionId

int lsst::ip::diffim::KernelSolution::_SolutionId = 0
staticprotectedinherited

Unique identifier for solution.

Definition at line 77 of file KernelSolution.h.

◆ _solvedBy

KernelSolvedBy lsst::ip::diffim::KernelSolution::_solvedBy
protectedinherited

Type of algorithm used to make solution.

Definition at line 75 of file KernelSolution.h.

◆ _spatialKernelFunction

lsst::afw::math::Kernel::SpatialFunctionPtr lsst::ip::diffim::SpatialKernelSolution::_spatialKernelFunction
private

Spatial function for Kernel.

Definition at line 196 of file KernelSolution.h.


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