![]() |
SG++-Doxygen-Documentation
|
Operation for evaluating a combination grid function (linear combination of linear combinations of full grid basis functions, where the coefficients of the outer linear combination are given by the combination grid). More...
#include <OperationEvalCombinationGrid.hpp>
Public Member Functions | |
double | eval (const std::vector< base::DataVector > &surpluses, const base::DataVector &point) |
Evaluate a combination grid function at one point. | |
const CombinationGrid & | getGrid () const |
void | multiEval (const std::vector< base::DataVector > &surpluses, const base::DataMatrix &points, base::DataVector &result) |
Evaluate a combination grid function at multiple points. | |
OperationEvalCombinationGrid (const CombinationGrid &grid) | |
Constructor. | |
void | setGrid (const CombinationGrid &grid) |
Protected Attributes | |
CombinationGrid | grid |
combination grid | |
Operation for evaluating a combination grid function (linear combination of linear combinations of full grid basis functions, where the coefficients of the outer linear combination are given by the combination grid).
|
explicit |
Constructor.
grid | combination grid |
double sgpp::combigrid::OperationEvalCombinationGrid::eval | ( | const std::vector< base::DataVector > & | surpluses, |
const base::DataVector & | point | ||
) |
Evaluate a combination grid function at one point.
surpluses | coefficients for the basis functions (may be nodal/hierarchical), every vector corresponds to one full grid (the order of DataVector entries is given by IndexVectorRange) |
point | point at which to evaluate the combination grid function |
References sgpp::combigrid::CombinationGrid::combineValues(), sgpp::combigrid::OperationEvalFullGrid::eval(), sgpp::combigrid::CombinationGrid::getFullGrids(), grid, and sgpp::combigrid::OperationEvalFullGrid::setGrid().
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity().
const CombinationGrid & sgpp::combigrid::OperationEvalCombinationGrid::getGrid | ( | ) | const |
References grid.
Referenced by python.uq.analysis.asgc.ASGCKnowledge.ASGCKnowledge::getSparseGridFunction(), python.uq.learner.SimulationLearner.SimulationLearner::learnData(), python.uq.learner.SimulationLearner.SimulationLearner::learnDataWithFolding(), python.uq.learner.SimulationLearner.SimulationLearner::learnDataWithTest(), and python.uq.learner.SimulationLearner.SimulationLearner::refineGrid().
void sgpp::combigrid::OperationEvalCombinationGrid::multiEval | ( | const std::vector< base::DataVector > & | surpluses, |
const base::DataMatrix & | points, | ||
base::DataVector & | result | ||
) |
Evaluate a combination grid function at multiple points.
[in] | surpluses | coefficients for the basis functions (may be nodal/hierarchical), every vector corresponds to one full grid (the order of DataVector entries is given by IndexVectorRange) |
[in] | points | points at which to evaluate the combination grid function (every row corresponds to one point) |
[out] | result | values of the combination grid function at the given points |
References sgpp::combigrid::CombinationGrid::combineValues(), sgpp::combigrid::CombinationGrid::getFullGrids(), sgpp::base::DataMatrix::getNrows(), grid, sgpp::combigrid::OperationEvalFullGrid::multiEval(), sgpp::base::DataMatrix::setColumn(), and sgpp::combigrid::OperationEvalFullGrid::setGrid().
void sgpp::combigrid::OperationEvalCombinationGrid::setGrid | ( | const CombinationGrid & | grid | ) |
grid | combination grid |
References grid.
Referenced by python.controller.CheckpointController.CheckpointController::setLearner().
|
protected |
combination grid
Referenced by python.uq.dists.SGDEdist.SGDEdist::__str__(), python.learner.Learner.Learner::applyData(), python.tools.Matrix::ApplyMatrix(), python.uq.dists.SGDEdist.SGDEdist::cdf(), python.uq.learner.Interpolant.Interpolant::doLearningIteration(), python.learner.Learner.Learner::doLearningIteration(), eval(), 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(), getGrid(), 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(), multiEval(), 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(), setGrid(), 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().