iCub-main
Public Member Functions | Protected Member Functions | List of all members
iCub::ctrl::AWQuadEstimator Class Reference

Adaptive window quadratic fitting to estimate the second derivative. More...

#include <adaptWinPolyEstimator.h>

+ Inheritance diagram for iCub::ctrl::AWQuadEstimator:

Public Member Functions

 AWQuadEstimator (unsigned int _N, const double _D)
 
- Public Member Functions inherited from iCub::ctrl::AWPolyEstimator
 AWPolyEstimator (unsigned int _order, unsigned int _N, const double _D)
 Create a polynomial estimator object of order _order on an adaptive window of a maximum length _N an threshold _D. More...
 
AWPolyListgetList ()
 Return a reference to internal elements list. More...
 
void feedData (const AWPolyElement &el)
 Feed data into the algorithm. More...
 
yarp::sig::Vector getWinLen ()
 Return the current windows lengths. More...
 
yarp::sig::Vector getMSE ()
 Return the mean squared error (MSE) computed over the current windows lengths between the predictions and the real data. More...
 
yarp::sig::Vector estimate ()
 Execute the algorithm upon the elements list, with the max deviation threshold given by D. More...
 
yarp::sig::Vector estimate (const AWPolyElement &el)
 Execute the algorithm upon the elements list, with the max deviation threshold given by D. More...
 
void reset ()
 Reinitialize the internal state. More...
 
virtual ~AWPolyEstimator ()
 Destructor. More...
 

Protected Member Functions

virtual double getEsteeme ()
 Return the current estimation. More...
 
- Protected Member Functions inherited from iCub::ctrl::AWPolyEstimator
virtual yarp::sig::Vector fit (const yarp::sig::Vector &x, const yarp::sig::Vector &y, const unsigned int n=0)
 Find the regressor which best fits in least square sense the last n data sample couples, or all couples if n==0. More...
 
virtual double eval (double x)
 Evaluate regressor at certain point. More...
 

Additional Inherited Members

- Protected Attributes inherited from iCub::ctrl::AWPolyEstimator
AWPolyList elemList
 
unsigned int order
 
unsigned int N
 
double D
 
yarp::sig::Vector t
 
yarp::sig::Vector x
 
yarp::sig::Vector coeff
 
yarp::sig::Vector winLen
 
yarp::sig::Vector mse
 
bool firstRun
 

Detailed Description

Adaptive window quadratic fitting to estimate the second derivative.

Definition at line 207 of file adaptWinPolyEstimator.h.

Constructor & Destructor Documentation

◆ AWQuadEstimator()

iCub::ctrl::AWQuadEstimator::AWQuadEstimator ( unsigned int  _N,
const double  _D 
)
inline

Definition at line 213 of file adaptWinPolyEstimator.h.

Member Function Documentation

◆ getEsteeme()

virtual double iCub::ctrl::AWQuadEstimator::getEsteeme ( )
inlineprotectedvirtual

Return the current estimation.

Note
needs to be defined.
Returns
esteeme.

Implements iCub::ctrl::AWPolyEstimator.

Definition at line 210 of file adaptWinPolyEstimator.h.


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