iCub-main
|
Abstract class to deal with function encoding. More...
#include <functionEncoder.h>
Public Member Functions | |
virtual bool | setEncoderOptions (const yarp::os::Property &options)=0 |
Configure the encoder. | |
virtual yarp::os::Property | getEncoderOptions ()=0 |
Retrieve the encoder's configuration options. | |
virtual Code | encode (const yarp::sig::Vector &values)=0 |
Encode the function. | |
virtual double | decode (const Code &code, const double x)=0 |
Compute the approximated value of function in x, given the code. | |
virtual | ~FunctionEncoder () |
Destructor. | |
Abstract class to deal with function encoding.
Definition at line 62 of file functionEncoder.h.
|
inlinevirtual |
Destructor.
Definition at line 103 of file functionEncoder.h.
|
pure virtual |
Compute the approximated value of function in x, given the code.
code | contains the function representation in the vector space. |
x | is the point at which the result is computed. It shall be in [0,1]. |
Implemented in iCub::ctrl::WaveletEncoder.
|
pure virtual |
Encode the function.
values | is 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]. |
Implemented in iCub::ctrl::WaveletEncoder.
|
pure virtual |
Retrieve the encoder's configuration options.
Implemented in iCub::ctrl::WaveletEncoder.
|
pure virtual |
Configure the encoder.
options | encoder's options in form of a Property object. |
Implemented in iCub::ctrl::WaveletEncoder.