Public Member Functions | List of all members
iCub::ctrl::FunctionEncoder Class Referenceabstract

Abstract class to deal with function encoding. More...

#include <functionEncoder.h>

+ Inheritance diagram for iCub::ctrl::FunctionEncoder:

Public Member Functions

virtual bool setEncoderOptions (const yarp::os::Property &options)=0
 Configure the encoder. More...
virtual yarp::os::Property getEncoderOptions ()=0
 Retrieve the encoder's configuration options. More...
virtual Code encode (const yarp::sig::Vector &values)=0
 Encode the function. More...
virtual double decode (const Code &code, const double x)=0
 Compute the approximated value of function in x, given the code. More...
virtual ~FunctionEncoder ()
 Destructor. More...

Detailed Description

Abstract class to deal with function encoding.

Definition at line 62 of file functionEncoder.h.

Constructor & Destructor Documentation

◆ ~FunctionEncoder()

virtual iCub::ctrl::FunctionEncoder::~FunctionEncoder ( )


Definition at line 103 of file functionEncoder.h.

Member Function Documentation

◆ decode()

virtual double iCub::ctrl::FunctionEncoder::decode ( const Code code,
const double  x 
pure virtual

Compute the approximated value of function in x, given the code.

codecontains the function representation in the vector space.
xis the point at which the result is computed. It shall be in [0,1].
the decoded function value.

Implemented in iCub::ctrl::WaveletEncoder.

◆ encode()

virtual Code iCub::ctrl::FunctionEncoder::encode ( const yarp::sig::Vector &  values)
pure virtual

Encode the function.

valuesis the vector containing the samples of function f to be encoded. The x coordinates of the points are intended to be normalized in [0,1], so that f(0)=values[0] and f(1)=values[values.length()-1].
the code encoding the function f.

Implemented in iCub::ctrl::WaveletEncoder.

◆ getEncoderOptions()

virtual yarp::os::Property iCub::ctrl::FunctionEncoder::getEncoderOptions ( )
pure virtual

Retrieve the encoder's configuration options.

a Property object containing the encoder's options.

Implemented in iCub::ctrl::WaveletEncoder.

◆ setEncoderOptions()

virtual bool iCub::ctrl::FunctionEncoder::setEncoderOptions ( const yarp::os::Property &  options)
pure virtual

Configure the encoder.

optionsencoder's options in form of a Property object.
true/false on success/fail.

Implemented in iCub::ctrl::WaveletEncoder.

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