12 #ifndef LSST_IP_DIFFIM_KERNELSOLUTION_H 13 #define LSST_IP_DIFFIM_KERNELSOLUTION_H 52 bool fitForBackground);
58 virtual void solve(Eigen::MatrixXd
const& mMat,
59 Eigen::VectorXd
const& bVec);
64 inline Eigen::MatrixXd
const&
getM() {
return _mMat;}
65 inline Eigen::VectorXd
const&
getB() {
return _bVec;}
82 template <
typename InputT>
88 bool fitForBackground);
100 virtual double getBackground();
101 virtual double getKsum();
114 void _setKernelUncertainty();
118 template <
typename InputT>
124 bool fitForBackground);
129 const &varianceEstimate,
135 const &varianceEstimate,
141 const &varianceEstimate,
147 template <
typename InputT>
153 bool fitForBackground,
154 Eigen::MatrixXd
const& hMat,
160 double estimateRisk(
double maxCond);
163 Eigen::MatrixXd
getM(
bool includeHmat =
true);
166 Eigen::MatrixXd
const _hMat;
187 void addConstraint(
float xCenter,
float yCenter,
188 Eigen::MatrixXd
const& qMat,
189 Eigen::VectorXd
const& wVec);
198 bool _constantFirstTerm;
211 void _setKernelUncertainty();
std::shared_ptr< SpatialKernelSolution > Ptr
std::shared_ptr< RegularizedKernelSolution< InputT > > Ptr
Eigen::MatrixXd _cMat
K_i x R.
a container for holding hierarchical configuration data in memory.
Eigen::VectorXd _bVec
Derived least squares B vector.
virtual ~SpatialKernelSolution()
KernelSolvedBy _solvedBy
Type of algorithm used to make solution.
double _background
Derived differential background estimate.
Eigen::VectorXd _iVec
Vectorized I.
lsst::afw::math::Kernel::Pixel PixelT
Eigen::VectorXd _ivVec
Inverse variance.
virtual ~RegularizedKernelSolution()
Eigen::VectorXd const & getB()
std::shared_ptr< StaticKernelSolution< InputT > > Ptr
A base class for image defects.
static int _SolutionId
Unique identifier for solution.
bool _fitForBackground
Background terms included in fit.
Represent a 2-dimensional array of bitmask pixels.
lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > ImageT
virtual double getConditionNumber(ConditionNumberType conditionType)
int _id
Unique ID for object.
KernelSolvedBy getSolvedBy()
std::shared_ptr< KernelSolution > Ptr
Eigen::MatrixXd _mMat
Derived least squares M matrix.
double _kSum
Derived kernel sum.
virtual ~StaticKernelSolution()
Eigen::MatrixXd const & getM()
Eigen::VectorXd _aVec
Derived least squares solution matrix.
std::shared_ptr< lsst::afw::math::Kernel > _kernel
Derived single-object convolution kernel.
std::shared_ptr< MaskedKernelSolution< InputT > > Ptr
An integer coordinate rectangle.
virtual ~KernelSolution()
virtual ~MaskedKernelSolution()