Polynomial.
More...
|
const Eigen::VectorX< Scalar > & | coeffs () const |
| Returns the coefficients.
|
|
Scalar | f (Scalar x) const |
| Calculates the polynomial value at given x.
|
|
Polynomial< Scalar > | getDerivative () const |
| Calculates the derivative of the polynomial.
|
|
template<typename Derived > |
| Polynomial (const Eigen::DenseBase< Derived > &coefficients) |
| Constructor.
|
|
std::string | toString (fmt::format_string< double > fmt="{:.1e}", const char *var="x") const |
| Format the polynomial as a string.
|
|
template<typename Scalar>
class NAV::Polynomial< Scalar >
Polynomial.
◆ Polynomial()
template<typename Scalar >
template<typename Derived >
NAV::Polynomial< Scalar >::Polynomial |
( |
const Eigen::DenseBase< Derived > & | coefficients | ) |
|
|
inline |
Constructor.
- Parameters
-
coefficients | Polynomial coefficients in order a0 + a1 * x + a2 * x^2 + ... |
◆ f()
template<typename Scalar >
Calculates the polynomial value at given x.
- Parameters
-
◆ toString()
template<typename Scalar >
std::string NAV::Polynomial< Scalar >::toString |
( |
fmt::format_string< double > | fmt = "{:.1e}", |
|
|
const char * | var = "x" ) const |
|
inline |
Format the polynomial as a string.
- Parameters
-
[in] | fmt | Format string for the polynomial coefficients |
[in] | var | Variable name to use |
The documentation for this class was generated from the following file:
- /home/runner/work/INSTINCT/INSTINCT/src/Navigation/Math/Polynomial.hpp