|
Polynomial< Scalar > | calcPolynomial () const |
| Calculates the polynomial.
|
|
const ScrollingBuffer< std::pair< Scalar, Scalar > > & | data () const |
| Gets the underlying buffer.
|
|
bool | empty () const |
| Checks if the container has no elements.
|
|
| PolynomialRegressor (size_t polynomialDegree, size_t windowSize, Strategy strategy=Strategy::HouseholderQR) |
| Constructor.
|
|
void | push_back (const Scalar &x, const Scalar &y) |
| Add a data point to the polynomial.
|
|
void | push_back (const std::pair< Scalar, Scalar > &dataPoint) |
| Add a data point to the polynomial.
|
|
void | reset () |
| Reset the polynomial coefficients and saved data.
|
|
void | setPolynomialDegree (size_t polynomialDegree) |
| Set the Polynomial Degree and resets the data.
|
|
void | setStrategy (Strategy strategy) |
| Set the strategy for the fit and resets the data.
|
|
void | setWindowSize (size_t windowSize) |
| Sets the amount of points used for the fit (sliding window)
|
|
bool | windowSizeReached () const |
| Checks if the amount of data points equals the window size.
|
|
template<typename Scalar = double>
class NAV::PolynomialRegressor< Scalar >
Polynomial Curve Fitting.
- Template Parameters
-