64 template<
typename PixelT>
70 _kSums(
std::vector<double>()),
79 template<
typename PixelT>
89 template<
typename PixelT>
94 if (kCandidate == NULL) {
96 "Failed to cast SpatialCellCandidate to KernelCandidate");
98 LOGL_DEBUG(
"TRACE5.ip.diffim.KernelSumVisitor.processCandidate",
99 "Processing candidate %d, mode %d", kCandidate->
getId(),
_mode);
112 LOGL_DEBUG(
"TRACE3.ip.diffim.KernelSumVisitor.processCandidate",
113 "Rejecting candidate %d; bad source kernel sum : (%.2f)",
120 LOGL_DEBUG(
"TRACE5.ip.diffim.KernelSumVisitor.processCandidate",
121 "Sigma clipping not enabled");
126 template<
typename PixelT>
130 "Unable to determine kernel sum; 0 candidates");
133 LOGL_DEBUG(
"TRACE1.ip.diffim.KernelSumVisitor.processKsumDistribution",
134 "WARNING: only 1 kernel candidate");
155 str(boost::format(
"Mean kernel sum returns NaN (%d points)")
160 str(boost::format(
"Kernel sum stdev returns NaN (%d points)")
165 LOGL_DEBUG(
"TRACE1.ip.diffim.KernelSumVisitor.processCandidate",
166 "Kernel Sum Distribution : %.3f +/- %.3f (%d points)",
int _kSumNpts
Number of points used in the statistics.
Mode _mode
Processing mode; AGGREGATE or REJECT.
void setStatus(Status status)
Class stored in SpatialCells for spatial Kernel fitting.
Declaration of KernelSumVisitor.
std::shared_ptr< StaticKernelSolution< PixelT > > getKernelSolution(CandidateSwitch cand) const
double _kSumMean
Clipped mean of the kernel sums.
bool getBool(const std::string &name) const
A class to accumulate kernel sums across SpatialCells.
void processKsumDistribution()
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
double _dkSumMax
Maximum acceptable deviation from mean sum.
Class used by SpatialModelCell for spatial Kernel fitting.
double getValue(Property const prop=NOTHING) const
double getDouble(const std::string &name) const
#define LSST_EXCEPT(type,...)
double _kSumStd
Clipped standard deviation of kernel sums.
#define LOGL_DEBUG(logger, message...)
template std::shared_ptr< KernelSumVisitor< PixelT > > makeKernelSumVisitor< PixelT >(lsst::pex::policy::Policy const &)
std::vector< double > _kSums
List of all candidate kernel sums.
KernelSumVisitor(lsst::pex::policy::Policy const &policy)
#define LSST_EXCEPT_ADD(e, m)
int _nRejected
Number of candidates rejected during processCandidate()
lsst::pex::policy::Policy _policy
Policy controlling behavior.