Dev Essential
Loading...
Searching...
No Matches
ddl::mapping::MapPolynomTransformation Class Reference

#include <map_transformation.h>

Inherits ddl::mapping::MapTransformationBase.

Public Member Functions

 MapPolynomTransformation (MapConfiguration *config, const std::string &name)
 
double getA () const
 
double getB () const
 
double getC () const
 
double getD () const
 
double getE () const
 
a_util::result::Result setCoefficients (const std::string coefs[5])
 
bool isEqual (const MapTransformationBase &other) const
 
double evaluate (double value) const
 
MapTransformationBaseclone () const
 nodoc
 
- Public Member Functions inherited from ddl::mapping::MapTransformationBase
 MapTransformationBase (MapConfiguration *config, const std::string &name)
 
virtual ~MapTransformationBase ()
 
const std::string & getName () const
 
bool isValid () const
 

Detailed Description

MapPolynomTransformation represents a polynom transformation in the configuration api as well as the actual implementation of the transformation in the evaluate method

Constructor & Destructor Documentation

◆ MapPolynomTransformation()

ddl::mapping::MapPolynomTransformation::MapPolynomTransformation ( MapConfiguration * config,
const std::string & name )

CTOR

Parameters
[in]configThe configuration
[in]nameThe transformation name

Member Function Documentation

◆ clone()

MapTransformationBase * ddl::mapping::MapPolynomTransformation::clone ( ) const
virtual

◆ evaluate()

double ddl::mapping::MapPolynomTransformation::evaluate ( double value) const
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements ddl::mapping::MapTransformationBase.

◆ getA()

double ddl::mapping::MapPolynomTransformation::getA ( ) const

Returns parameter A of the polynomial

◆ getB()

double ddl::mapping::MapPolynomTransformation::getB ( ) const

Returns parameter A of the polynomial

◆ getC()

double ddl::mapping::MapPolynomTransformation::getC ( ) const

Returns parameter A of the polynomial

◆ getD()

double ddl::mapping::MapPolynomTransformation::getD ( ) const

Returns parameter A of the polynomial

◆ getE()

double ddl::mapping::MapPolynomTransformation::getE ( ) const

Returns parameter A of the polynomial

◆ isEqual()

bool ddl::mapping::MapPolynomTransformation::isEqual ( const MapTransformationBase & other) const
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements ddl::mapping::MapTransformationBase.

◆ setCoefficients()

a_util::result::Result ddl::mapping::MapPolynomTransformation::setCoefficients ( const std::string coefs[5])

Set Polynom coefficients

Parameters
[in]coefsThe list of coefficients
Return values
ERR_INVALID_ARGAn attribute is not a float value
a_util::result::SUCCESSEverything went fine

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