philsupertramp/game-math
|
#include <SupportValues.h>
Public Member Functions | |
MonomBase (const Matrix< double > &X, const Matrix< double > &Y) | |
virtual Matrix< double > | Evaluate (const Matrix< double > &X) const |
virtual std::string | Function () const |
Public Member Functions inherited from PolynomialBase | |
PolynomialBase (const Matrix< double > &X, const Matrix< double > &Y) | |
virtual Matrix< double > | Evaluate (const Matrix< double > &) const =0 |
virtual std::string | Function () const =0 |
Public Attributes | |
Matrix< double > | A |
Coefficient matrix. More... | |
Monom-Base:
$$y_i = p(x_i) = a_0 + a_1x_i + ... + a_nx_i^n, \forall i = 0, \dots, n$$ https://wiki.godesteem.de/wiki/interpolation-and-approximation/#Monom-Base
Default constructor
X | $$x_i$$ support values |
Y | $$y_i$$ support values evaluated with function |
quick test if everything is right, if det(out) = 1 we made some mistake computing the vandermonde-matrix per definition it's determinant is always \neq 0!
iterative evaluation, nothing special
X | evaluation values |
Implements PolynomialBase.
|
inlinevirtual |
Matrix<double> MonomBase::A |
Coefficient matrix.