SG++-Doxygen-Documentation
sgpp::combigrid::NonNestedPointHierarchy Class Reference

PointHierarchy class for point hierarchies that are not fully nested (see also AbstractPointHierarchy). More...

#include <NonNestedPointHierarchy.hpp>

Inheritance diagram for sgpp::combigrid::NonNestedPointHierarchy:
sgpp::combigrid::AbstractPointHierarchy

Public Member Functions

virtual std::vector< double > & computePoints (size_t level)
 
virtual size_t getNumPoints (size_t level)
 
virtual double getPoint (size_t level, size_t index)
 
virtual std::vector< double > getPoints (size_t level, bool sorted)
 
virtual std::shared_ptr< AbstractPermutationIteratorgetSortedPermutationIterator (size_t level)
 
virtual bool isNested ()
 
 NonNestedPointHierarchy (std::shared_ptr< AbstractPointDistribution > pointDistribution, std::shared_ptr< AbstractPointOrdering > pointOrdering)
 
virtual ~NonNestedPointHierarchy ()
 
- Public Member Functions inherited from sgpp::combigrid::AbstractPointHierarchy
virtual ~AbstractPointHierarchy ()
 

Public Attributes

std::vector< size_t > numPointsPerLevel
 
std::vector< std::shared_ptr< AbstractPermutationIterator > > permutationIterators
 
std::shared_ptr< AbstractPointDistributionpointDistribution
 
std::shared_ptr< AbstractPointOrderingpointOrdering
 
std::vector< std::vector< double > > points
 

Detailed Description

PointHierarchy class for point hierarchies that are not fully nested (see also AbstractPointHierarchy).

Constructor & Destructor Documentation

◆ NonNestedPointHierarchy()

sgpp::combigrid::NonNestedPointHierarchy::NonNestedPointHierarchy ( std::shared_ptr< AbstractPointDistribution pointDistribution,
std::shared_ptr< AbstractPointOrdering pointOrdering 
)

◆ ~NonNestedPointHierarchy()

sgpp::combigrid::NonNestedPointHierarchy::~NonNestedPointHierarchy ( )
virtual

Member Function Documentation

◆ computePoints()

std::vector< double > & sgpp::combigrid::NonNestedPointHierarchy::computePoints ( size_t  level)
virtual

◆ getNumPoints()

size_t sgpp::combigrid::NonNestedPointHierarchy::getNumPoints ( size_t  level)
virtual
Returns
Returns the number of points in the given level.

Implements sgpp::combigrid::AbstractPointHierarchy.

References level, numPointsPerLevel, and pointOrdering.

Referenced by computePoints(), and getSortedPermutationIterator().

◆ getPoint()

double sgpp::combigrid::NonNestedPointHierarchy::getPoint ( size_t  level,
size_t  index 
)
virtual
Returns
Returns the grid point for the given level and index. (0 <= index < getNumPoints(level))

Implements sgpp::combigrid::AbstractPointHierarchy.

References computePoints().

◆ getPoints()

std::vector< double > sgpp::combigrid::NonNestedPointHierarchy::getPoints ( size_t  level,
bool  sorted 
)
virtual
Returns
Returns a vector with all points for the given level. If sorted == true, then the points returned are sorted. Depending on the configured PointOrdering, this might be slower than not sorting the points.

Implements sgpp::combigrid::AbstractPointHierarchy.

References computePoints(), getSortedPermutationIterator(), python.statsfileInfo::i, and points.

Referenced by python.data.DataContainer.DataContainer::combine(), python.data.DataContainer.DataContainer::getDataSubsetByIndexList(), python.data.DataContainer.DataContainer::getPointsValues(), and python.data.DataContainer.DataContainer::toString().

◆ getSortedPermutationIterator()

std::shared_ptr< AbstractPermutationIterator > sgpp::combigrid::NonNestedPointHierarchy::getSortedPermutationIterator ( size_t  level)
virtual
Returns
Returns a permutation iterator which can be used to traverse the points in their sorted (ascending) order.

Implements sgpp::combigrid::AbstractPointHierarchy.

References computePoints(), getNumPoints(), level, permutationIterators, pointOrdering, and points.

Referenced by getPoints().

◆ isNested()

bool sgpp::combigrid::NonNestedPointHierarchy::isNested ( )
virtual
Returns
Returns true if the points of a level are always a subset of the points at the next level. This should also mean that the points that are common to two levels share the same indices.

Implements sgpp::combigrid::AbstractPointHierarchy.

Member Data Documentation

◆ numPointsPerLevel

std::vector<size_t> sgpp::combigrid::NonNestedPointHierarchy::numPointsPerLevel

Referenced by getNumPoints().

◆ permutationIterators

std::vector<std::shared_ptr<AbstractPermutationIterator> > sgpp::combigrid::NonNestedPointHierarchy::permutationIterators

◆ pointDistribution

std::shared_ptr<AbstractPointDistribution> sgpp::combigrid::NonNestedPointHierarchy::pointDistribution

Referenced by computePoints().

◆ pointOrdering

std::shared_ptr<AbstractPointOrdering> sgpp::combigrid::NonNestedPointHierarchy::pointOrdering

◆ points


The documentation for this class was generated from the following files: