|
ug4
|
#include <lagrange1d.h>
Inheritance diagram for ug::Lagrange1D:Public Member Functions | |
| Lagrange1D (const size_t i, const std::vector< number > &vPos) | |
| number | position (const size_t i) const |
| returns the position of the i'th interpolation point | |
Public Member Functions inherited from ug::Polynomial1D | |
| size_t | degree () const |
| Polynomial1D | derivative () const |
| returns the derivative of this polynomial as a polynomial | |
| Polynomial1D & | operator*= (const Polynomial1D &v) |
| multiply by a polynomial | |
| Polynomial1D & | operator*= (number scale) |
| multiply by a scalar | |
| Polynomial1D (const std::vector< number > &a) | |
| Constructor passing coefficients for the polynomial. | |
| Polynomial1D (size_t degree=0) | |
| Constructor producing zero polynomial of degree 'degree'. | |
| number | value (const number x) const |
| evaluate the value of the polynom at x | |
Protected Member Functions | |
| void | compute_coeffs (const size_t i, const std::vector< number > &vPos) |
| computes the coefficients for passed interpolation points | |
Protected Member Functions inherited from ug::Polynomial1D | |
| void | set_coefficients (const std::vector< number > &a) |
Private Attributes | |
| std::vector< number > | m_vPos |
Lagrange Polynomial for arbitrary points
|
inline |
constructor for lagrange polynomial i using interpolation points pos This constructor creates a lagrange polynomial with interpolation points given in pos for the i-th point, i.e. value(pos_i) == 1, value(pos_j) == 0 for j != i. Therefore, it must hold that 0 <= i < pos.size()
References compute_coeffs(), and m_vPos.
|
inlineprotected |
computes the coefficients for passed interpolation points
References ug::Polynomial1D::set_coefficients().
Referenced by Lagrange1D().
|
inline |
|
private |
Referenced by Lagrange1D(), and position().