SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ModelFitting::NormalizedConverter Class Reference

CoordinateConverter implementation which performs normalization. More...

#include <NormalizedConverter.h>

Inheritance diagram for ModelFitting::NormalizedConverter:
[legend]
Collaboration diagram for ModelFitting::NormalizedConverter:
[legend]

Public Member Functions

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

Private Attributes

double m_norm_value
 

Detailed Description

CoordinateConverter implementation which performs normalization.

Definition at line 36 of file NormalizedConverter.h.

Constructor & Destructor Documentation

ModelFitting::NormalizedConverter::NormalizedConverter ( double  norm_value)

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.

ModelFitting::NormalizedConverter::~NormalizedConverter ( )
virtualdefault

Destructor.

Member Function Documentation

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.

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

Implements ModelFitting::CoordinateConverter.

Definition at line 39 of file NormalizedConverter.cpp.

References m_norm_value.

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

double ModelFitting::NormalizedConverter::m_norm_value
private

Definition at line 84 of file NormalizedConverter.h.

Referenced by engineToWorld(), getEngineToWorldDerivative(), and worldToEngine().


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