#include <SupportValues.h>
◆ LagrangeBase()
LagrangeBase::LagrangeBase |
( |
const Matrix< double > & |
X, |
|
|
const Matrix< double > & |
Y |
|
) |
| |
|
inline |
Default constructor
- Parameters
-
◆ buildLx()
std::string LagrangeBase::buildLx |
( |
size_t |
i | ) |
const |
|
inline |
builds lagrange coefficient $$L_i$$ string representation
- Parameters
-
- Returns
- coefficient representation
◆ Evaluate()
virtual Matrix< double > LagrangeBase::Evaluate |
( |
const Matrix< double > & |
in | ) |
const |
|
inlinevirtual |
◆ Function()
virtual std::string LagrangeBase::Function |
( |
| ) |
const |
|
inlinevirtual |
Builds string representation in lagrange base
- Returns
- representational string
Implements PolynomialBase.
◆ GetCoefficient()
double LagrangeBase::GetCoefficient |
( |
const double & |
xk, |
|
|
const size_t |
i |
|
) |
| const |
|
inline |
Computes i-th coefficient
$$L_i(x) = \prod_{j=0, j\neq i}^{n} \frac{x-x_j}{x_i-x_j}, \forall i=0, \dots, n$$
- Parameters
-
xk | current value $$x_k$$ |
i | index i |
- Returns
- coefficient value
Matrix<double> LagrangeBase::x |
|
private |
Matrix<double> LagrangeBase::y |
|
private |
$$y_i$$ Support values evaluated with the function
The documentation for this class was generated from the following file: