SourceXtractorPlusPlus  0.10
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MoffatCriteria.h
Go to the documentation of this file.
1 
17 /*
18  * MoffatCritteria.h
19  *
20  * Created on: 2019 M01 25
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_GROUPING_MOFFATCRITERIA_H_
25 #define _SEIMPLEMENTATION_GROUPING_MOFFATCRITERIA_H_
26 
28 
29 namespace SourceXtractor {
30 
31 class MoffatModelFitting;
32 
40 public:
41 
42  MoffatCriteria(double threshold, double max_distance) : m_threshold(threshold), m_max_distance(max_distance) {}
43  virtual ~MoffatCriteria() {}
44 
45  virtual bool shouldGroup(const SourceInterface&, const SourceInterface&) const override;
46 
47 private:
48  bool doesImpact(const SourceInterface& impactor, const SourceInterface& impactee) const;
49 
50  double m_threshold;
52 };
53 
54 } /* namespace SourceXtractor */
55 
56 #endif /* _SEIMPLEMENTATION_GROUPING_MOFFATCRITERIA_H_ */
bool doesImpact(const SourceInterface &impactor, const SourceInterface &impactee) const
MoffatCriteria(double threshold, double max_distance)
virtual bool shouldGroup(const SourceInterface &, const SourceInterface &) const override
Determines if the two sources should be grouped together.
Criteria used by SourceGrouping to determine if two sources should be grouped together.
Groups sources if their Moffat profile overlap.
The SourceInterface is an abstract "source" that has properties attached to it.