Go to the documentation of this file.
30 #ifndef __FUNCTIONENCODER_H__
31 #define __FUNCTIONENCODER_H__
33 #include <yarp/os/Property.h>
34 #include <yarp/sig/Vector.h>
87 virtual Code encode(
const yarp::sig::Vector &values) = 0;
98 virtual double decode(
const Code &code,
const double x) = 0;
124 double interpFunction(
const yarp::sig::Vector &values,
const double x);
164 virtual Code encode(
const yarp::sig::Vector &values);
177 virtual double decode(
const Code &code,
const double x);
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.
virtual double decode(const Code &code, const double x)=0
Compute the approximated value of function in x, given the code.
double interpWavelet(const double x)
virtual double decode(const Code &code, const double x)
Compute the approximated value of function in x, given the input set of wavelet coefficients.
yarp::sig::Vector coefficients
The vector of coefficients encoding the function.
virtual bool setEncoderOptions(const yarp::os::Property &options)=0
Configure the encoder.
virtual yarp::os::Property getEncoderOptions()
Retrieve the encoder's configuration options.
const yarp::sig::Vector * pVal
double interpFunction(const yarp::sig::Vector &values, const double x)
virtual bool setEncoderOptions(const yarp::os::Property &options)
Configure the encoder.
friend double waveletIntegrand(double, void *)
virtual ~WaveletEncoder()
Destructor.
virtual yarp::os::Property getEncoderOptions()=0
Retrieve the encoder's configuration options.
virtual Code encode(const yarp::sig::Vector &values)
Encode the function.
virtual Code encode(const yarp::sig::Vector &values)=0
Encode the function.
WaveletEncoder()
Constructor.
virtual ~FunctionEncoder()
Destructor.