![]() |
SG++-Doxygen-Documentation
|
Sparse grid interpolant gradient of a scalar-valued function. More...
#include <InterpolantScalarFunctionGradient.hpp>
Public Member Functions | |
void | clone (std::unique_ptr< ScalarFunctionGradient > &clone) const override |
double | eval (const DataVector &x, DataVector &gradient) override |
Evaluation of the function and its gradient. | |
const DataVector & | getAlpha () const |
InterpolantScalarFunctionGradient (Grid &grid, const DataVector &alpha) | |
Constructor. | |
void | setAlpha (const DataVector &alpha) |
~InterpolantScalarFunctionGradient () override | |
Destructor. | |
![]() | |
virtual void | eval (const DataMatrix &x, DataVector &value, DataMatrix &gradient) |
Convenience method for calculating \(f(\vec{x})\) together with \(\nabla f(\vec{x})\) for multiple \(\vec{x}\). | |
size_t | getNumberOfParameters () const |
ScalarFunctionGradient (size_t d) | |
Constructor. | |
virtual | ~ScalarFunctionGradient () |
Destructor. | |
Protected Attributes | |
DataVector | alpha |
coefficient vector | |
Grid & | grid |
sparse grid | |
std::unique_ptr< OperationEvalGradient > | opEvalGradient |
pointer to evaluation operation | |
![]() | |
size_t | d |
dimension of the domain | |
Sparse grid interpolant gradient of a scalar-valued function.
|
inline |
Constructor.
Do not destruct the grid before the InterpolantScalarFunctionGradient object!
grid | sparse grid |
alpha | coefficient vector |
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
[out] | clone | pointer to cloned object |
Implements sgpp::base::ScalarFunctionGradient.
References alpha, clone(), and grid.
Referenced by clone().
|
inlineoverridevirtual |
Evaluation of the function and its gradient.
x | evaluation point \(\vec{x} \in [0, 1]^d\) | |
[out] | gradient | gradient \(\nabla f(\vec{x}) \in \mathbb{R}^d\) |
Implements sgpp::base::ScalarFunctionGradient.
References alpha, sgpp::base::ScalarFunctionGradient::d, and opEvalGradient.
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity().
|
inline |
References alpha.
Referenced by python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge::getSparseGridFunction().
|
inline |
alpha | coefficient vector |
References alpha.
|
protected |
coefficient vector
Referenced by clone(), python.learner.Learner.Learner::doLearningIteration(), eval(), getAlpha(), python.learner.Learner.Learner::learnData(), python.learner.Learner.Learner::learnDataWithTest(), python.uq.learner.Interpolant.Interpolant::learnDataWithTest(), python.uq.dists.SGDEdist.SGDEdist::pdf(), setAlpha(), and python.uq.dists.SGDEdist.SGDEdist::toJson().
|
protected |
sparse grid
Referenced by python.uq.dists.SGDEdist.SGDEdist::__str__(), python.learner.Learner.Learner::applyData(), python.tools.Matrix::ApplyMatrix(), python.uq.dists.SGDEdist.SGDEdist::cdf(), clone(), python.uq.learner.Interpolant.Interpolant::doLearningIteration(), python.learner.Learner.Learner::doLearningIteration(), python.learner.Classifier.Classifier::evalError(), python.uq.learner.Interpolant.Interpolant::evalError(), python.tools.Matrix::generateb(), python.controller.CheckpointController.CheckpointController::generateFoldValidationJob(), python.uq.learner.SimulationLearner.SimulationLearner::getCollocationNodes(), python.uq.learner.SimulationLearner.SimulationLearner::getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getLearner(), python.learner.Learner.Learner::learnData(), python.learner.Learner.Learner::learnDataWithFolding(), python.uq.learner.Regressor.Regressor::learnDataWithFolding(), python.learner.Learner.Learner::learnDataWithTest(), python.uq.learner.Regressor.Regressor::learnDataWithTest(), python.controller.CheckpointController.CheckpointController::loadAll(), python.uq.operations.forcePositivity.operationMakePositive.OperationMakePositive::makePositive(), python.uq.operations.forcePositivity.operationMakePositiveFast.OperationMakePositiveFast::makePositive(), python.uq.dists.SGDEdist.SGDEdist::mean(), python.uq.dists.SGDEdist.SGDEdist::pdf(), python.uq.dists.SGDEdist.SGDEdist::ppf(), python.learner.Classifier.Classifier::refineGrid(), python.learner.Regressor.Regressor::refineGrid(), python.uq.learner.Regressor.Regressor::refineGrid(), python.uq.learner.SimulationLearner.SimulationLearner::refineGrid(), python.controller.CheckpointController.CheckpointController::saveGrid(), python.controller.CheckpointController.CheckpointController::setGrid(), python.learner.Learner.Learner::setGrid(), python.uq.learner.Learner.Learner::setGrid(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::split(), python.uq.dists.SGDEdist.SGDEdist::toJson(), and python.uq.dists.SGDEdist.SGDEdist::var().
|
protected |
pointer to evaluation operation
Referenced by eval().