SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
GrowthCurve.h
Go to the documentation of this file.
1
17
18#ifndef _SEIMPLEMENTATION_PLUGIN_GROWTHCURVE_GROWTHCURVE_H_
19#define _SEIMPLEMENTATION_PLUGIN_GROWTHCURVE_GROWTHCURVE_H_
20
21#include <vector>
23
24namespace SourceXtractor {
25
30class GrowthCurve: public Property {
31public:
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
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
50private:
53};
54
55} // end of namespace SourceXtractor
56
57#endif /* _SEIMPLEMENTATION_PLUGIN_GROWTHCURVE_GROWTHCURVE_H_ */
58
virtual ~GrowthCurve()=default
std::vector< double > m_growth_curve
Definition GrowthCurve.h:51
const std::vector< double > & getCurve() const
Definition GrowthCurve.h:38
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.