SourceXtractorPlusPlus  0.15
Please provide a description of the project.
GrowthCurve.h
Go to the documentation of this file.
1 
18 #ifndef _SEIMPLEMENTATION_PLUGIN_GROWTHCURVE_GROWTHCURVE_H_
19 #define _SEIMPLEMENTATION_PLUGIN_GROWTHCURVE_GROWTHCURVE_H_
20 
21 #include <vector>
23 
24 namespace SourceXtractor {
25 
30 class GrowthCurve: public Property {
31 public:
32  virtual ~GrowthCurve() = default;
33 
34  GrowthCurve(std::vector<double>&& growth_curve, double end)
35  : m_growth_curve{std::move(growth_curve)}, m_max{end}, m_step_size{end / m_growth_curve.size()} {
36  }
37 
38  const std::vector<double>& getCurve() const {
39  return m_growth_curve;
40  }
41 
42  double getMax() const {
43  return m_max;
44  }
45 
46  double getStepSize() const {
47  return m_step_size;
48  }
49 
50 private:
52  double m_max, m_step_size;
53 };
54 
55 } // end of namespace SourceXtractor
56 
57 #endif /* _SEIMPLEMENTATION_PLUGIN_GROWTHCURVE_GROWTHCURVE_H_ */
58 
std::move
T move(T... args)
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition: Property.h:33
std::vector< double >
std::vector::size
T size(T... args)
SourceXtractor::GrowthCurve::getStepSize
double getStepSize() const
Definition: GrowthCurve.h:46
SourceXtractor::GrowthCurve::GrowthCurve
GrowthCurve(std::vector< double > &&growth_curve, double end)
Definition: GrowthCurve.h:34
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::GrowthCurve::getMax
double getMax() const
Definition: GrowthCurve.h:42
Property.h
SourceXtractor::GrowthCurve::m_max
double m_max
Definition: GrowthCurve.h:52
SourceXtractor::GrowthCurve::~GrowthCurve
virtual ~GrowthCurve()=default
SourceXtractor::GrowthCurve::getCurve
const std::vector< double > & getCurve() const
Definition: GrowthCurve.h:38
SourceXtractor::GrowthCurve
Definition: GrowthCurve.h:30
std::end
T end(T... args)
SourceXtractor::GrowthCurve::m_step_size
double m_step_size
Definition: GrowthCurve.h:52
SourceXtractor::GrowthCurve::m_growth_curve
std::vector< double > m_growth_curve
Definition: GrowthCurve.h:51