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 
virtual ~GrowthCurve()=default
const std::vector< double > & getCurve() const
Definition: GrowthCurve.h:38
std::vector< double > m_growth_curve
Definition: GrowthCurve.h:51
double getStepSize() const
Definition: GrowthCurve.h:46
GrowthCurve(std::vector< double > &&growth_curve, double end)
Definition: GrowthCurve.h:34
Base class for all Properties. (has no actual content)
Definition: Property.h:33
T end(T... args)
T move(T... args)
STL namespace.