SG++-Doxygen-Documentation
|
Polynomial basis functions. More...
#include <PolyClenshawCurtisBasis.hpp>
Public Member Functions | |
double | eval (LT level, IT index, double p) override |
Evaluate the basis function with given level and index. More... | |
double | evalBasis (LT level, IT index, double p) |
Evaluate a basis function. More... | |
double | evalDx (LT level, IT index, double x) |
double | evalHierToTop (LT level, IT index, DataVector &coeffs, double pos) |
Evaluates all the hierarchical ancestors of the node defined by level and index. More... | |
size_t | getDegree () const override |
Returns the polynomial degree of the basis. More... | |
double | getIntegral (LT level, IT index) override |
returns the integal of the current basis function More... | |
PolyClenshawCurtisBasis (size_t degree) | |
Constructor. More... | |
~PolyClenshawCurtisBasis () override | |
Destructor. More... | |
Public Member Functions inherited from sgpp::base::Basis< LT, IT > | |
virtual | ~Basis () |
Destructor. More... | |
Protected Attributes | |
ClenshawCurtisTable & | clenshawCurtisTable |
reference to the Clenshaw-Curtis cache table More... | |
size_t | degree |
the polynom's max degree More... | |
std::vector< int > | idxtable |
Polynomial basis functions.
|
inlineexplicit |
Constructor.
degree | the polynom's max. degree |
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
Evaluate the basis function with given level and index.
level | level of the basis function |
index | index of the basis function |
x | evaluation point |
Implements sgpp::base::Basis< LT, IT >.
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity(), sgpp::base::OperationEvalPolyClenshawCurtisNaive::eval(), sgpp::base::PolyClenshawCurtisBoundaryBasis< unsigned int, unsigned int >::eval(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalBasis(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalDx(), sgpp::base::PolyModifiedClenshawCurtisBasis< unsigned int, unsigned int >::evalDx(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalHierToTop(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral(), sgpp::base::OperationMultipleEvalPolyClenshawCurtisNaive::mult(), sgpp::pde::OperationLaplacePolyClenshawCurtis::mult(), and sgpp::base::OperationMultipleEvalPolyClenshawCurtisNaive::multTranspose().
|
inline |
Evaluate a basis function.
Has a dependence on the absolute position of grid point and support.
We compute the roots in units of h = grid spacing at level l = 2 ** -l.
Due to limited polynomial degree, we compute the roots of the Lagrange polynomial bottom up.
Referenced by sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::eval().
|
inline |
|
inline |
Evaluates all the hierarchical ancestors of the node defined by level and index.
NOTE: It does not evaluate the current node itself.
level | |
index | |
coeffs | |
pos |
Referenced by sgpp::base::DehierarchisationPolyClenshawCurtis::rec(), and sgpp::base::HierarchisationPolyClenshawCurtis::rec().
|
inlineoverridevirtual |
Returns the polynomial degree of the basis.
Implements sgpp::base::Basis< LT, IT >.
Referenced by sgpp::base::PolyClenshawCurtisBoundaryBasis< unsigned int, unsigned int >::getDegree(), and sgpp::base::PolyModifiedClenshawCurtisBasis< unsigned int, unsigned int >::getDegree().
|
inlineoverridevirtual |
returns the integal of the current basis function
level | level of the basis function |
index | index of the basis function |
Implements sgpp::base::Basis< LT, IT >.
Referenced by sgpp::base::OperationQuadraturePolyClenshawCurtis::doQuadrature(), sgpp::base::PolyModifiedClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral(), and sgpp::base::PolyClenshawCurtisBoundaryBasis< unsigned int, unsigned int >::getIntegral().
|
protected |
reference to the Clenshaw-Curtis cache table
Referenced by sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::eval(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalBasis(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalDx(), and sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral().
|
protected |
the polynom's max degree
Referenced by sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalBasis(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalDx(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::getDegree(), and sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral().
|
protected |