SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ModelFitting::NormalizedConverter Class Reference

CoordinateConverter implementation which performs normalization. More...

#include <NormalizedConverter.h>

Inheritance diagram for ModelFitting::NormalizedConverter:
Collaboration diagram for ModelFitting::NormalizedConverter:

Public Member Functions

 NormalizedConverter (double norm_value)
 Constructs a new instance of NormalizedConverter.
virtual ~NormalizedConverter ()
 Destructor.
double worldToEngine (const double world_value) const override
 Returns the engine value for the given world value.
double engineToWorld (const double engine_value) const override
 Returns the world value for the given engine value.
double getEngineToWorldDerivative (const double value) const override
Public Member Functions inherited from ModelFitting::CoordinateConverter
virtual ~CoordinateConverter ()
 Destructor.

Private Attributes

double m_norm_value

Detailed Description

CoordinateConverter implementation which performs normalization.

Definition at line 36 of file NormalizedConverter.h.

Constructor & Destructor Documentation

◆ NormalizedConverter()

ModelFitting::NormalizedConverter::NormalizedConverter ( double norm_value)
explicit

Constructs a new instance of NormalizedConverter.

Parameters
norm_valueThe world value which will be normalized to 1 in engine coordinates

Definition at line 27 of file NormalizedConverter.cpp.

References m_norm_value.

◆ ~NormalizedConverter()

ModelFitting::NormalizedConverter::~NormalizedConverter ( )
virtualdefault

Destructor.

Member Function Documentation

◆ engineToWorld()

double ModelFitting::NormalizedConverter::engineToWorld ( const double engine_value) const
overridevirtual

Returns the world value for the given engine value.

The world value is engine_value * norm_value, where norm_value is the normalization value given to the constructor of the NormalizedConverter.

Parameters
engine_valueThe engine value of the parameter
Returns
The world value of the parameter

Implements ModelFitting::CoordinateConverter.

Definition at line 35 of file NormalizedConverter.cpp.

References m_norm_value.

◆ getEngineToWorldDerivative()

double ModelFitting::NormalizedConverter::getEngineToWorldDerivative ( const double value) const
overridevirtual

Implements ModelFitting::CoordinateConverter.

Definition at line 39 of file NormalizedConverter.cpp.

References m_norm_value.

◆ worldToEngine()

double ModelFitting::NormalizedConverter::worldToEngine ( const double world_value) const
overridevirtual

Returns the engine value for the given world value.

The engine value is world_value / norm_value, where norm_value is the normalization value given to the constructor of the NormalizedConverter.

Parameters
world_valueThe world value of the parameter
Returns
The engine value of the parameter

Implements ModelFitting::CoordinateConverter.

Definition at line 31 of file NormalizedConverter.cpp.

References m_norm_value.

Member Data Documentation

◆ m_norm_value

double ModelFitting::NormalizedConverter::m_norm_value
private

The documentation for this class was generated from the following files: