SG++-Doxygen-Documentation
|
Abstract base class for one-dimensional numerical evaluation methods. More...
#include <AbstractEvaluator.hpp>
Public Member Functions | |
virtual std::shared_ptr< AbstractEvaluator< V > > | clone ()=0 |
Clones the AbstractEvaluator object. More... | |
virtual V | eval ()=0 |
Evaluates the numerical method on the already set grid points. More... | |
virtual EvaluatorConfiguration | getConfig () |
(Currently not used). More... | |
virtual bool | needsOrderedPoints ()=0 |
virtual bool | needsParameter ()=0 |
virtual void | setBasisCoefficientsAtGridPoints (std::vector< double > &newBasisCoefficients)=0 |
set the basis coefficients for the linear combination. More... | |
virtual void | setConfig (EvaluatorConfiguration newEvalConfig) |
virtual void | setGridPoints (std::vector< double > const &xValues)=0 |
Sets the grid points for evaluation. More... | |
void | setLevel (size_t level) |
This is used to set the level in case an evaluator needs it. More... | |
virtual void | setParameter (V const ¶m)=0 |
Via this method, the parameter can be set. More... | |
virtual | ~AbstractEvaluator () |
Protected Attributes | |
EvaluatorConfiguration | evalConfig |
size_t | level = 0 |
Abstract base class for one-dimensional numerical evaluation methods.
Currently, only its derived class AbstractLinearEvaluator is used.
The template parameter is used for switching between single-evaluation and multi-evaluation, see FloatArrayVector.
|
inlinevirtual |
|
pure virtual |
Clones the AbstractEvaluator object.
Implemented in sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, and sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >.
Referenced by sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
pure virtual |
Evaluates the numerical method on the already set grid points.
Implemented in sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, and sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >.
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity(), and sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
inlinevirtual |
(Currently not used).
Via the template type V, multiple arrays of function values for multiple functions might be specified and a result for each of these functions should be returned. This could be used in an alternative implementation to FullGridTensorEvaluator that would also be able to handle non-linear one-dimensional methods.
|
pure virtual |
Implemented in sgpp::combigrid::PolynomialScalarProductEvaluator, sgpp::combigrid::ArrayEvaluator< ScalarEvaluator >, sgpp::combigrid::BSplineScalarProductEvaluator, sgpp::combigrid::PolynomialQuadratureEvaluator, sgpp::combigrid::BSplineQuadratureEvaluator, sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >, sgpp::combigrid::PolynomialInterpolationEvaluator, sgpp::combigrid::BSplineInterpolationCoefficientEvaluator, sgpp::combigrid::LinearInterpolationEvaluator, sgpp::combigrid::InterpolationCoefficientEvaluator, sgpp::combigrid::BSplineInterpolationEvaluator, and sgpp::combigrid::CubicSplineInterpolationEvaluator.
Referenced by sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
pure virtual |
Implemented in sgpp::combigrid::PolynomialScalarProductEvaluator, sgpp::combigrid::ArrayEvaluator< ScalarEvaluator >, sgpp::combigrid::BSplineScalarProductEvaluator, sgpp::combigrid::PolynomialQuadratureEvaluator, sgpp::combigrid::BSplineQuadratureEvaluator, sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >, sgpp::combigrid::PolynomialInterpolationEvaluator, sgpp::combigrid::BSplineInterpolationCoefficientEvaluator, sgpp::combigrid::LinearInterpolationEvaluator, sgpp::combigrid::InterpolationCoefficientEvaluator, sgpp::combigrid::BSplineInterpolationEvaluator, and sgpp::combigrid::CubicSplineInterpolationEvaluator.
Referenced by sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
pure virtual |
set the basis coefficients for the linear combination.
In case of linear or polynomial interpolation these basis coefficients are function evaluations
newBasisCoefficients | the new coefficients |
Implemented in sgpp::combigrid::PolynomialScalarProductEvaluator, sgpp::combigrid::ArrayEvaluator< ScalarEvaluator >, sgpp::combigrid::BSplineScalarProductEvaluator, sgpp::combigrid::PolynomialQuadratureEvaluator, sgpp::combigrid::BSplineQuadratureEvaluator, sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >, sgpp::combigrid::PolynomialInterpolationEvaluator, sgpp::combigrid::BSplineInterpolationCoefficientEvaluator, sgpp::combigrid::LinearInterpolationEvaluator, sgpp::combigrid::InterpolationCoefficientEvaluator, sgpp::combigrid::BSplineInterpolationEvaluator, and sgpp::combigrid::CubicSplineInterpolationEvaluator.
Referenced by sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
inlinevirtual |
|
pure virtual |
Sets the grid points for evaluation.
The evaluation method should allow for arbitrary grid points to achieve maximal modularity.
Implemented in sgpp::combigrid::PolynomialScalarProductEvaluator, sgpp::combigrid::BSplineScalarProductEvaluator, sgpp::combigrid::PolynomialQuadratureEvaluator, sgpp::combigrid::ArrayEvaluator< ScalarEvaluator >, sgpp::combigrid::BSplineQuadratureEvaluator, sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >, sgpp::combigrid::PolynomialInterpolationEvaluator, sgpp::combigrid::BSplineInterpolationCoefficientEvaluator, sgpp::combigrid::LinearInterpolationEvaluator, sgpp::combigrid::InterpolationCoefficientEvaluator, sgpp::combigrid::BSplineInterpolationEvaluator, and sgpp::combigrid::CubicSplineInterpolationEvaluator.
Referenced by sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
inline |
This is used to set the level in case an evaluator needs it.
|
pure virtual |
Via this method, the parameter can be set.
Implemented in sgpp::combigrid::PolynomialScalarProductEvaluator, sgpp::combigrid::ArrayEvaluator< ScalarEvaluator >, sgpp::combigrid::BSplineScalarProductEvaluator, sgpp::combigrid::PolynomialQuadratureEvaluator, sgpp::combigrid::BSplineQuadratureEvaluator, sgpp::combigrid::AbstractLinearEvaluator< V >, sgpp::combigrid::AbstractLinearEvaluator< FloatArrayVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatScalarVector >, sgpp::combigrid::AbstractLinearEvaluator< FloatTensorVector >, sgpp::combigrid::PolynomialInterpolationEvaluator, sgpp::combigrid::BSplineInterpolationCoefficientEvaluator, sgpp::combigrid::LinearInterpolationEvaluator, sgpp::combigrid::InterpolationCoefficientEvaluator, sgpp::combigrid::BSplineInterpolationEvaluator, and sgpp::combigrid::CubicSplineInterpolationEvaluator.
Referenced by sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel().
|
protected |
|
protected |
Referenced by python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::__eq__(), python.learner.folding.FoldingPolicy.FoldingPolicy::__next__(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::contains(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::containsDimx(), python.uq.learner.builder.GridDescriptor.GridDescriptor::createGrid(), python.uq.estimators.MarginalIntegralStrategy.MarginalIntegralStrategy::estimate(), python.uq.learner.builder.GridDescriptor.GridDescriptor::fromGrid(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::getLevelIndex(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::getMaxLevel(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::overlap(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::overlapDimx(), sgpp::combigrid::AbstractEvaluator< FloatTensorVector >::setLevel(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::transformToReferenceGrid(), python.uq.manager.ASGCStatistics.ASGCStatistics::updateResults(), python.uq.learner.SimulationLearner.SimulationLearner::updateResults(), python.uq.learner.builder.GridDescriptor.GridDescriptor::withLevel(), and python.uq.learner.builder.RegressorSpecificationDescriptor.FoldingDescriptor::withLevel().