SG++

Standard free coarsening class for sparse grids, only inner grid points can be removed. More...
#include <HashCoarsening.hpp>
Public Types  
typedef std::pair< size_t, CoarseningFunctor::value_type >  GridPointPair 
Public Member Functions  
void  free_coarsen (GridStorage &storage, CoarseningFunctor &functor, DataVector &alpha) 
Performs coarsening on grid. More...  
void  free_coarsen_NFirstOnly (GridStorage &storage, CoarseningFunctor &functor, DataVector &alpha, size_t numFirstPoints, size_t minIndexConsidered=0) 
Performs coarsening on grid. More...  
std::list< size_t >  getDeletedPoints () 
size_t  getNumberOfRemovablePoints (GridStorage &storage) 
Calculates the number of points, which can be refined. More...  
Standard free coarsening class for sparse grids, only inner grid points can be removed.
typedef std::pair<size_t, CoarseningFunctor::value_type> sgpp::base::HashCoarsening::GridPointPair 

inline 
Performs coarsening on grid.
It's possible to remove a certain number of gridpoints in one coarsening step. This number is specified within the declaration of the coarsening functor. Also the coarsening threshold is specified in the coarsening functor. ONLY INNER GRID POINTS WILL BE REMOVED!
This function calls free_coarsen_NFirstOnly with numFirstPoints equal to the grid's size.
storage  hashmap that stores the grid points 
functor  a function used to determine if refinement is needed 
alpha  pointer to the gridpoints' coefficients removed points must also be considered in this vector 
References free_coarsen_NFirstOnly(), and sgpp::base::HashGridStorage::getSize().
Referenced by sgpp::base::StretchedBoundaryGridGenerator::coarsen(), sgpp::base::L0BoundaryGridGenerator::coarsen(), sgpp::base::StandardGridGenerator::coarsen(), sgpp::base::BoundaryGridGenerator::coarsen(), and sgpp::base::PrewaveletGridGenerator::coarsen().

inline 
Performs coarsening on grid.
It's possible to remove a certain number of gridpoints in one coarsening step. This number is specified within the declaration of the coarsening functor. Also the coarsening threshold is specified in the coarsening functor. ONLY INNER GRID POINTS WILL BE REMOVED!
Here only the numFirstPoints are regarded for coarsening, later points are skipped.
storage  hashmap that stores the grid points 
functor  a function used to determine if refinement is needed 
alpha  pointer to the gridpoints' coefficients removed points must also be considered in this vector 
numFirstPoints  number of grid points that are regarded to be coarsened 
minIndexConsidered  indices of coarsen point candidates must be higher than this parameter to be allowed to get coarsened 
References sgpp::base::HashGridStorage::deletePoints(), sgpp::base::CoarseningFunctor::getCoarseningThreshold(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::CoarseningFunctor::getRemovementsNum(), sgpp::base::HashGridStorage::getSize(), sgpp::base::HashGridPoint::isInnerPoint(), sgpp::base::HashGridPoint::isLeaf(), sgpp::base::DataVector::restructure(), and sgpp::base::CoarseningFunctor::start().
Referenced by sgpp::base::StretchedBoundaryGridGenerator::coarsenNFirstOnly(), sgpp::base::L0BoundaryGridGenerator::coarsenNFirstOnly(), sgpp::base::StandardGridGenerator::coarsenNFirstOnly(), sgpp::base::BoundaryGridGenerator::coarsenNFirstOnly(), sgpp::base::PrewaveletGridGenerator::coarsenNFirstOnly(), free_coarsen(), and sgpp::datadriven::LearnerSGDEOnOff::refine().

inline 
Referenced by sgpp::datadriven::LearnerSGDEOnOff::refine().

inline 
Calculates the number of points, which can be refined.
storage  hashmap that stores the grid points 
References sgpp::base::HashGridStorage::begin(), analyse_erg::counter, sgpp::base::HashGridStorage::end(), sgpp::base::HashGridStorage::getSize(), and sgpp::base::HashGridPoint::isLeaf().
Referenced by sgpp::base::StretchedBoundaryGridGenerator::getNumberOfRemovablePoints(), sgpp::base::L0BoundaryGridGenerator::getNumberOfRemovablePoints(), sgpp::base::StandardGridGenerator::getNumberOfRemovablePoints(), sgpp::base::BoundaryGridGenerator::getNumberOfRemovablePoints(), and sgpp::base::PrewaveletGridGenerator::getNumberOfRemovablePoints().