![]() |
SG++-Doxygen-Documentation
|
Implementation of ScalarFunction that wraps a std::function object. More...
#include <WrapperScalarFunction.hpp>
Public Types | |
typedef std::function< double(const DataVector &)> | FunctionEvalType |
Public Member Functions | |
void | clone (std::unique_ptr< ScalarFunction > &clone) const override |
double | eval (const DataVector &x) override |
WrapperScalarFunction (size_t d, FunctionEvalType f) | |
Constructor. | |
~WrapperScalarFunction () override | |
Destructor. | |
![]() | |
virtual void | eval (const DataMatrix &x, DataVector &value) |
Convenience method for calculating \(f(\vec{x})\) for multiple \(\vec{x}\). | |
size_t | getNumberOfParameters () const |
ScalarFunction (size_t d) | |
Constructor. | |
virtual | ~ScalarFunction () |
Destructor. | |
Protected Attributes | |
FunctionEvalType | f |
function to be wrapped | |
![]() | |
size_t | d |
dimension of the domain | |
Implementation of ScalarFunction that wraps a std::function object.
typedef std::function<double(const DataVector&)> sgpp::base::WrapperScalarFunction::FunctionEvalType |
|
inline |
Constructor.
d | dimension of the domain |
f | function to be wrapped |
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
[out] | clone | pointer to cloned object |
Implements sgpp::base::ScalarFunction.
References clone(), sgpp::base::ScalarFunction::d, and f.
Referenced by clone().
|
inlineoverridevirtual |
x | evaluation point \(\vec{x} \in [0, 1]^d\) |
Implements sgpp::base::ScalarFunction.
References f.
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity().
|
protected |
function to be wrapped
Referenced by clone(), eval(), and python.uq.refinement.RefinementStrategy.PredictiveRanking::rank().