Least Squares Curve Fitting.
More...
|
| LeastSquares ()=delete |
| Constructor.
|
|
|
template<typename DerivedX , typename DerivedY > |
static Eigen::VectorX< Scalar > | calcCoefficients (const Eigen::MatrixBase< DerivedX > &x, const Eigen::MatrixBase< DerivedY > &y, size_t polynomialDegree=2) |
| Calculates the polynomial coefficients in order a0 + a1 * x + a2 * x^2 + ...
|
|
template<typename Scalar>
class NAV::LeastSquares< Scalar >
Least Squares Curve Fitting.
- Template Parameters
-
◆ calcCoefficients()
template<typename Scalar >
template<typename DerivedX , typename DerivedY >
static Eigen::VectorX< Scalar > NAV::LeastSquares< Scalar >::calcCoefficients |
( |
const Eigen::MatrixBase< DerivedX > & | x, |
|
|
const Eigen::MatrixBase< DerivedY > & | y, |
|
|
size_t | polynomialDegree = 2 ) |
|
inlinestatic |
Calculates the polynomial coefficients in order a0 + a1 * x + a2 * x^2 + ...
- Parameters
-
[in] | x | X data to fit |
[in] | y | Y data to fit |
[in] | polynomialDegree | Polynomial degree to fit |
The documentation for this class was generated from the following file:
- /home/runner/work/INSTINCT/INSTINCT/src/Navigation/Math/internal/PolynomialRegressor/LeastSquares.hpp