SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NormalizedConverter.cpp
Go to the documentation of this file.
1 
24 
25 namespace ModelFitting {
26 
27 NormalizedConverter::NormalizedConverter(double norm_value) : m_norm_value{norm_value} { }
28 
30 
31 double NormalizedConverter::worldToEngine(const double world_value) const {
32  return world_value / m_norm_value;
33 }
34 
35 double NormalizedConverter::engineToWorld(const double engine_value) const {
36  return engine_value * m_norm_value;
37 }
38 
39 double NormalizedConverter::getEngineToWorldDerivative(const double /*value*/) const {
40  return m_norm_value;
41 }
42 
43 } // end of namespace ModelFitting
virtual ~NormalizedConverter()
Destructor.
double engineToWorld(const double engine_value) const override
Returns the world value for the given engine value.
double getEngineToWorldDerivative(const double value) const override
NormalizedConverter(double norm_value)
Constructs a new instance of NormalizedConverter.
double worldToEngine(const double world_value) const override
Returns the engine value for the given world value.