![]() |
SG++-Doxygen-Documentation
|
Full grid essentially represented by its level and a HeterogeneousBasis. More...
#include <FullGrid.hpp>
Public Types | |
enum class | LevelOccupancy { TwoToThePowerOfL , Linear } |
LevelOccupancy : how many points are occupied per level in each dimension, "growth rate". More... | |
Public Member Functions | |
bool | findGridPointInFullGrid (const base::GridPoint &gridPoint, IndexVector &index) const |
Helper function to find a grid point in the full grid. | |
FullGrid () | |
Default constructor, corresponds to the zero-dimensional case. | |
FullGrid (const LevelVector &level, const HeterogeneousBasis &basis, bool hasBoundary=true, FullGrid::LevelOccupancy levelOccupancy=FullGrid::LevelOccupancy::TwoToThePowerOfL) | |
Constructor. | |
const HeterogeneousBasis & | getBasis () const |
size_t | getDimension () const |
LevelVector & | getLevel () |
const LevelVector & | getLevel () const |
size_t | getLevel (size_t d) const |
const LevelOccupancy & | getLevelOccupancy () const |
void | getMaxIndex (IndexVector &index) const |
Maximum index of grid points. | |
index_t | getMaxIndex (size_t d) const |
Maximum 1D index of grid points. | |
void | getMinIndex (IndexVector &index) const |
Minimum index of grid points. | |
index_t | getMinIndex (size_t d) const |
Minimum 1D index of grid points. | |
index_t | getNumberOfIndexVectors () const |
Total number of index vectors (grid points). | |
void | getNumberOfIndexVectors (IndexVector &number) const |
Number of index vectors (grid points) in 1D for all dimensions. | |
index_t | getNumberOfIndexVectors (size_t d) const |
Number of index vectors (grid points) in 1D. | |
bool | hasBoundary () const |
bool | operator!= (const FullGrid &other) const |
bool | operator== (const FullGrid &other) const |
void | setBasis (const HeterogeneousBasis &basis) |
void | setHasBoundary (bool hasBoundary) |
void | setLevel (const LevelVector &level) |
void | setLevel (size_t d, level_t level) |
Static Public Member Functions | |
static index_t | getNumberOfPointsFromLevel (const LevelVector &level, FullGrid::LevelOccupancy levelOccupancy=FullGrid::LevelOccupancy::TwoToThePowerOfL, bool hasBoundary=true) |
static index_t | getNumberOfPointsFromLevel (level_t level, FullGrid::LevelOccupancy levelOccupancy=FullGrid::LevelOccupancy::TwoToThePowerOfL, bool hasBoundary=true) |
Protected Attributes | |
HeterogeneousBasis | basis |
type of basis functions for evaluating on the full grid | |
bool | hasBoundary_ |
whether the full grid has points on the boundary | |
LevelVector | level |
level of the full grid | |
LevelOccupancy | levelOccupancy |
level occupancy in the full grid | |
Full grid essentially represented by its level and a HeterogeneousBasis.
|
strong |
LevelOccupancy : how many points are occupied per level in each dimension, "growth rate".
|
inline |
Default constructor, corresponds to the zero-dimensional case.
|
inline |
Constructor.
level | level of the full grid |
basis | type of basis functions for evaluating on the full grid |
hasBoundary | whether the full grid has points on the boundary |
levelOccupancy | how many points are added to the grid per level |
References levelOccupancy, and TwoToThePowerOfL.
bool sgpp::combigrid::FullGrid::findGridPointInFullGrid | ( | const base::GridPoint & | gridPoint, |
IndexVector & | index | ||
) | const |
Helper function to find a grid point in the full grid.
[in] | gridPoint | grid point to find |
[out] | index | index of the grid point after calling (if the grid point is contained in the full grid) |
References sgpp::base::HashGridPoint::getDimension(), sgpp::base::HashGridPoint::getIndex(), getLevel(), sgpp::base::HashGridPoint::getLevel(), and hasBoundary().
Referenced by sgpp::combigrid::CombinationGrid::distributeValuesToFullGrid().
|
inline |
References basis.
Referenced by sgpp::combigrid::OperationUPFullGrid::apply(), sgpp::combigrid::OperationEvalFullGrid::eval(), and sgpp::combigrid::OperationEvalFullGrid::multiEval().
|
inline |
References level.
Referenced by sgpp::combigrid::OperationUPFullGrid::apply().
|
inline |
References level.
|
inline |
References level.
Referenced by sgpp::combigrid::OperationUPFullGrid::apply(), sgpp::combigrid::OperationEvalFullGrid::eval(), findGridPointInFullGrid(), and sgpp::combigrid::OperationEvalFullGrid::multiEval().
|
inline |
|
inline |
References levelOccupancy.
|
inline |
Maximum index of grid points.
[out] | index | maximum index as multi-index |
References getMaxIndex(), and level.
|
inline |
Maximum 1D index of grid points.
d | dimension |
References getMinIndex(), and level.
Referenced by getMaxIndex(), and getNumberOfIndexVectors().
|
inline |
Minimum index of grid points.
[out] | index | minimum index as multi-index |
References getMinIndex(), and level.
|
inline |
Minimum 1D index of grid points.
d | dimension |
References hasBoundary_.
Referenced by sgpp::combigrid::OperationUPFullGrid::apply(), getMaxIndex(), getMinIndex(), and getNumberOfIndexVectors().
|
inline |
Total number of index vectors (grid points).
References getNumberOfIndexVectors(), and level.
Referenced by getNumberOfIndexVectors(), and getNumberOfIndexVectors().
|
inline |
Number of index vectors (grid points) in 1D for all dimensions.
[out] | number | vector, \(d\)-th entry is number of index vectors in the \(d\)-th dimension |
References getNumberOfIndexVectors(), and level.
|
inline |
Number of index vectors (grid points) in 1D.
d | dimension |
References getMaxIndex(), and getMinIndex().
Referenced by sgpp::combigrid::OperationUPFullGrid::apply(), and sgpp::combigrid::CombinationGrid::distributeValuesToFullGrid().
|
static |
References level, and levelOccupancy.
|
static |
References hasBoundary(), level, and levelOccupancy.
Referenced by sgpp::combigrid::WeightedRelevanceCalculator::calculate(), and sgpp::combigrid::AveragingPriorityEstimator::estimatePriority().
|
inline |
References hasBoundary_.
Referenced by sgpp::combigrid::OperationUPFullGrid::apply(), findGridPointInFullGrid(), getNumberOfPointsFromLevel(), and setHasBoundary().
|
inline |
other | other FullGrid instance |
|
inline |
other | other FullGrid instance |
References basis, hasBoundary_, and level.
|
inline |
basis | type of basis functions for evaluating on the full grid |
References basis.
|
inline |
hasBoundary | whether the full grid has points on the boundary |
References hasBoundary(), and hasBoundary_.
|
inline |
level | level of the full grid |
References level.
|
inline |
d | dimension |
level | \(d\)-th level of the full grid |
References level.
|
protected |
type of basis functions for evaluating on the full grid
Referenced by getBasis(), operator==(), and setBasis().
|
protected |
whether the full grid has points on the boundary
Referenced by getMinIndex(), hasBoundary(), operator==(), and setHasBoundary().
|
protected |
level of the full grid
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(), getDimension(), getLevel(), getLevel(), getLevel(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::getLevelIndex(), getMaxIndex(), getMaxIndex(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::getMaxLevel(), getMinIndex(), getNumberOfIndexVectors(), getNumberOfIndexVectors(), getNumberOfPointsFromLevel(), getNumberOfPointsFromLevel(), operator==(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::overlap(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::overlapDimx(), setLevel(), setLevel(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::transformToReferenceGrid(), python.uq.manager.ASGCStatistics.ASGCStatistics::updateResults(), python.uq.learner.builder.GridDescriptor.GridDescriptor::withLevel(), and python.uq.learner.builder.RegressorSpecificationDescriptor.FoldingDescriptor::withLevel().
|
protected |
level occupancy in the full grid
Referenced by FullGrid(), getLevelOccupancy(), getNumberOfPointsFromLevel(), and getNumberOfPointsFromLevel().