|
PARTONS/NumA++
|
Numerical Analysis C++ routines
|
![]() |
Chebyshev expansion class. More...
Public Member Functions | |
| Chebyshev (unsigned int N=50) | |
| Default Constructor with the order N of the expansion. More... | |
| virtual | ~Chebyshev () |
| Default destructor. More... | |
| unsigned int | getN () const |
| Get the order N of the expansion. More... | |
| void | setN (unsigned int n) |
| Set the order N of the expansion/. More... | |
| const NumA::VectorD & | getRoots () const |
| const NumA::MatrixD & | getValuesToCoeffsMatrix () const |
| Interpolation matrix. More... | |
| const NumA::MatrixD & | getCoeffsToValuesMatrix () const |
| NumA::MatrixD | getCoeffsToValuesMatrix (const NumA::VectorD &points) const |
| NumA::VectorD | getCoeffsToValueVector (double x) const |
| NumA::MatrixD | getValuesToValuesMatrix (const NumA::VectorD &points) const |
| Interpolation matrix. More... | |
| NumA::VectorD | getValuesToValueVector (double x) const |
Chebyshev expansion class.
Interpolation \( f(x) = \sum_{i=0}^{N-1} c_i T_i \left( x \right) \) for \( x \in \left[ -1, 1 \right] \) , where \( N \) is the order of the expansion.
TODO: \( x \in \) any interval.
| NumA::Chebyshev::Chebyshev | ( | unsigned int | N = 50 | ) |
Default Constructor with the order N of the expansion.
| N | Order of the expansion. |
|
virtual |
Default destructor.
| const NumA::MatrixD & NumA::Chebyshev::getCoeffsToValuesMatrix | ( | ) | const |
| NumA::MatrixD NumA::Chebyshev::getCoeffsToValuesMatrix | ( | const NumA::VectorD & | points | ) | const |
| points | Points where to evaluate the expansion. |
| NumA::VectorD NumA::Chebyshev::getCoeffsToValueVector | ( | double | x | ) | const |
| x | Point where the expansion is evaluated. |
| unsigned int NumA::Chebyshev::getN | ( | ) | const |
Get the order N of the expansion.
| const NumA::VectorD & NumA::Chebyshev::getRoots | ( | ) | const |
| const NumA::MatrixD & NumA::Chebyshev::getValuesToCoeffsMatrix | ( | ) | const |
Interpolation matrix.
| NumA::MatrixD NumA::Chebyshev::getValuesToValuesMatrix | ( | const NumA::VectorD & | points | ) | const |
Interpolation matrix.
| points | Points where to evaluate the expansion. |
| NumA::VectorD NumA::Chebyshev::getValuesToValueVector | ( | double | x | ) | const |
| void NumA::Chebyshev::setN | ( | unsigned int | n | ) |
Set the order N of the expansion/.
| n | unsigned int |