![]() |
SG++-Doxygen-Documentation
|
Implementation of VectorFunction that wraps a std::function object. More...
#include <WrapperVectorFunction.hpp>
Public Types | |
typedef std::function< void(const DataVector &, DataVector &)> | FunctionEvalType |
Public Member Functions | |
void | clone (std::unique_ptr< VectorFunction > &clone) const override |
void | eval (const DataVector &x, DataVector &value) override |
WrapperVectorFunction (size_t d, size_t m, FunctionEvalType f) | |
Constructor. | |
~WrapperVectorFunction () override | |
Destructor. | |
![]() | |
virtual void | eval (const DataMatrix &x, DataMatrix &value) |
Convenience method for calculating \(g(\vec{x})\) for multiple \(\vec{x}\). | |
size_t | getNumberOfComponents () const |
size_t | getNumberOfParameters () const |
VectorFunction (size_t d, size_t m) | |
Constructor. | |
virtual | ~VectorFunction () |
Destructor. | |
Protected Attributes | |
FunctionEvalType | f |
function to be wrapped | |
![]() | |
size_t | d |
dimension of the domain | |
size_t | m |
number of components | |
Implementation of VectorFunction that wraps a std::function object.
typedef std::function<void(const DataVector&, DataVector&)> sgpp::base::WrapperVectorFunction::FunctionEvalType |
|
inline |
Constructor.
d | dimension of the domain |
m | number of components |
f | function to be wrapped |
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
[out] | clone | pointer to cloned object |
Implements sgpp::base::VectorFunction.
References clone(), sgpp::base::VectorFunction::d, f, and sgpp::base::VectorFunction::m.
Referenced by clone().
|
inlineoverridevirtual |
[in] | x | evaluation point \(\vec{x} \in [0, 1]^d\) |
[out] | value | \(g(\vec{x})\) |
Implements sgpp::base::VectorFunction.
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().