lsst.ip.diffim  13.0-19-g373a351+2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
lsst::ip::diffim::KernelSolution Class Reference

#include <KernelSolution.h>

Inheritance diagram for lsst::ip::diffim::KernelSolution:
lsst::ip::diffim::SpatialKernelSolution lsst::ip::diffim::StaticKernelSolution< InputT > lsst::ip::diffim::MaskedKernelSolution< InputT > lsst::ip::diffim::RegularizedKernelSolution< InputT >

Public Types

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

Public Member Functions

 KernelSolution (Eigen::MatrixXd mMat, Eigen::VectorXd bVec, bool fitForBackground)
 
 KernelSolution (bool fitForBackground)
 
 KernelSolution ()
 
virtual ~KernelSolution ()
 
virtual void solve ()
 
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...
 

Detailed Description

Definition at line 30 of file KernelSolution.h.

Member Typedef Documentation

typedef lsst::afw::image::Image<lsst::afw::math::Kernel::Pixel> lsst::ip::diffim::KernelSolution::ImageT

Definition at line 34 of file KernelSolution.h.

typedef lsst::afw::math::Kernel::Pixel lsst::ip::diffim::KernelSolution::PixelT

Definition at line 33 of file KernelSolution.h.

Definition at line 32 of file KernelSolution.h.

Member Enumeration Documentation

Enumerator
EIGENVALUE 
SVD 

Definition at line 44 of file KernelSolution.h.

Enumerator
NONE 
CHOLESKY_LDLT 
CHOLESKY_LLT 
LU 
EIGENVECTOR 

Definition at line 36 of file KernelSolution.h.

Constructor & Destructor Documentation

lsst::ip::diffim::KernelSolution::KernelSolution ( Eigen::MatrixXd  mMat,
Eigen::VectorXd  bVec,
bool  fitForBackground 
)
explicit

Definition at line 55 of file KernelSolution.cc.

lsst::ip::diffim::KernelSolution::KernelSolution ( bool  fitForBackground)
explicit

Definition at line 68 of file KernelSolution.cc.

lsst::ip::diffim::KernelSolution::KernelSolution ( )
explicit

Definition at line 79 of file KernelSolution.cc.

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

Definition at line 55 of file KernelSolution.h.

Member Function Documentation

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

Definition at line 64 of file KernelSolution.h.

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

Definition at line 92 of file KernelSolution.cc.

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

Definition at line 96 of file KernelSolution.cc.

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

Definition at line 68 of file KernelSolution.h.

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

Definition at line 63 of file KernelSolution.h.

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

Definition at line 59 of file KernelSolution.h.

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

Definition at line 67 of file KernelSolution.h.

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

Definition at line 66 of file KernelSolution.h.

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

Definition at line 65 of file KernelSolution.h.

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

Definition at line 129 of file KernelSolution.cc.

Member Data Documentation

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

Derived least squares solution matrix.

Definition at line 74 of file KernelSolution.h.

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

Derived least squares B vector.

Definition at line 73 of file KernelSolution.h.

bool lsst::ip::diffim::KernelSolution::_fitForBackground
protected

Background terms included in fit.

Definition at line 76 of file KernelSolution.h.

int lsst::ip::diffim::KernelSolution::_id
protected

Unique ID for object.

Definition at line 71 of file KernelSolution.h.

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

Derived least squares M matrix.

Definition at line 72 of file KernelSolution.h.

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

Unique identifier for solution.

Definition at line 77 of file KernelSolution.h.

KernelSolvedBy lsst::ip::diffim::KernelSolution::_solvedBy
protected

Type of algorithm used to make solution.

Definition at line 75 of file KernelSolution.h.


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