SourceXtractorPlusPlus
0.11
Please provide a description of the project.
ModelFitting
src
lib
Parameters
NormalizedConverter.cpp
Go to the documentation of this file.
1
23
#include "
ModelFitting/Parameters/NormalizedConverter.h
"
24
25
namespace
ModelFitting
{
26
27
NormalizedConverter::NormalizedConverter
(
double
norm_value) : m_norm_value{norm_value} { }
28
29
NormalizedConverter::~NormalizedConverter
() =
default
;
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
ModelFitting::NormalizedConverter::worldToEngine
double worldToEngine(const double world_value) const override
Returns the engine value for the given world value.
Definition:
NormalizedConverter.cpp:31
ModelFitting::NormalizedConverter::getEngineToWorldDerivative
double getEngineToWorldDerivative(const double value) const override
Definition:
NormalizedConverter.cpp:39
NormalizedConverter.h
ModelFitting::NormalizedConverter::engineToWorld
double engineToWorld(const double engine_value) const override
Returns the world value for the given engine value.
Definition:
NormalizedConverter.cpp:35
ModelFitting::NormalizedConverter::m_norm_value
double m_norm_value
Definition:
NormalizedConverter.h:84
ModelFitting::NormalizedConverter::NormalizedConverter
NormalizedConverter(double norm_value)
Constructs a new instance of NormalizedConverter.
Definition:
NormalizedConverter.cpp:27
ModelFitting
Definition:
AsinhChiSquareComparator.h:30
ModelFitting::NormalizedConverter::~NormalizedConverter
virtual ~NormalizedConverter()
Destructor.
Generated by
1.8.18