Fast Function Approximation Library
 All Classes Files Functions Typedefs Macros
Public Member Functions | List of all members
GrowingWindow Class Reference

This class provides algorithms for up- and downdating least squares polynomial fits to discrete data with orthogonal polynomials using (hyper-)rotations and for evaluating the resulting polynomials. More...

#include <GrowingWindow.hpp>

Public Member Functions

 GrowingWindow (unsigned int degree)
 Constructor. More...
 
 ~GrowingWindow ()
 Destructor.
 
void reset ()
 Restart growing window approximation.
 
void update (double y)
 Update growing window approximation at y. More...
 
double evalPoly (double x)
 Evaluate polynomial at x. More...
 
int getNumSamples ()
 Get number of samples. More...
 
std::vector< double > getOrthogonalCoefficients ()
 Get orthogonal coefficients. More...
 
double getApproximationError ()
 Get approximation error. More...
 
int getExtremumPosition ()
 Get extremum position. More...
 

Detailed Description

This class provides algorithms for up- and downdating least squares polynomial fits to discrete data with orthogonal polynomials using (hyper-)rotations and for evaluating the resulting polynomials.

See Also
Fuchs, E.; Gruber, T.; Nitschke, J.; Sick, B., "Online Segmentation of Time Series Based on Polynomial Least-Squares Approximations," Pattern Analysis and Machine Intelligence, IEEE Transactions on , vol.32, no.12, pp.2232,2245, Dec. 2010

Constructor & Destructor Documentation

GrowingWindow::GrowingWindow ( unsigned int  degree)

Constructor.

Parameters
degreeDegree of polynom approximation

Member Function Documentation

double GrowingWindow::evalPoly ( double  x)

Evaluate polynomial at x.

Parameters
xValue polynomial is evaluated at.
Returns
Evaluation at x.
double GrowingWindow::getApproximationError ( )

Get approximation error.

Returns
Approximation error
int GrowingWindow::getExtremumPosition ( )

Get extremum position.

Returns
Extremum position
int GrowingWindow::getNumSamples ( )

Get number of samples.

Returns
Number of samples.
std::vector< double > GrowingWindow::getOrthogonalCoefficients ( )

Get orthogonal coefficients.

Returns
Vector containing orthogonal coefficients
void GrowingWindow::update ( double  y)

Update growing window approximation at y.

Parameters
yUpdate value

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