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;
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);
Abstract class to deal with function encoding.
virtual ~FunctionEncoder()
Destructor.
virtual bool setEncoderOptions(const yarp::os::Property &options)=0
Configure the encoder.
virtual double decode(const Code &code, const double x)=0
Compute the approximated value of function in x, given the code.
virtual yarp::os::Property getEncoderOptions()=0
Retrieve the encoder's configuration options.
virtual Code encode(const yarp::sig::Vector &values)=0
Encode the function.
Encode any given function as a set of wavelet coefficients.
const yarp::sig::Vector * pVal
WaveletEncoder()
Constructor.
friend double waveletIntegrand(double, void *)
virtual double decode(const Code &code, const double x)
Compute the approximated value of function in x, given the input set of wavelet coefficients.
virtual ~WaveletEncoder()
Destructor.
virtual yarp::os::Property getEncoderOptions()
Retrieve the encoder's configuration options.
virtual Code encode(const yarp::sig::Vector &values)
Encode the function.
virtual bool setEncoderOptions(const yarp::os::Property &options)
Configure the encoder.
double interpFunction(const yarp::sig::Vector &values, const double x)
double interpWavelet(const double x)
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.
yarp::sig::Vector coefficients
The vector of coefficients encoding the function.