#include <functionEncoder.h>
Abstract class to deal with function encoding.
Definition at line 62 of file functionEncoder.h.
◆ ~FunctionEncoder()
virtual iCub::ctrl::FunctionEncoder::~FunctionEncoder |
( |
| ) |
|
|
inlinevirtual |
◆ 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.
- Parameters
-
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]. |
- Returns
- 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.
- Parameters
-
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]. |
- Returns
- 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.
- Returns
- 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.
- Parameters
-
options | encoder's options in form of a Property object. |
- Returns
- true/false on success/fail.
Implemented in iCub::ctrl::WaveletEncoder.
The documentation for this class was generated from the following file: