SG++-Doxygen-Documentation
|
Abstract class that defines the interfaces that coarsening functors have to provide. More...
#include <CoarseningFunctor.hpp>
Public Types | |
typedef double | value_type |
Public Member Functions | |
CoarseningFunctor () | |
Constructor. More... | |
virtual double | getCoarseningThreshold () const =0 |
Returns the threshold value. More... | |
virtual size_t | getRemovementsNum () const |
Returns the maximal number of points that should be removed. More... | |
virtual double | operator() (GridStorage &storage, size_t seq)=0 |
This should be returning a coarsening value for every grid point. More... | |
virtual double | start () const =0 |
This should return the initial value of coarsening criterion (e.g. More... | |
virtual | ~CoarseningFunctor () |
Destructor. More... | |
Abstract class that defines the interfaces that coarsening functors have to provide.
typedef double sgpp::base::CoarseningFunctor::value_type |
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
References operator()(), and start().
|
pure virtual |
Returns the threshold value.
Only the grid points with absolute value of coarsening criterion (e.g. alpha) less or equal to this threshold will be removed
Implemented in sgpp::base::SurplusVolumeCoarseningFunctor, and sgpp::base::SurplusCoarseningFunctor.
Referenced by sgpp::base::HashCoarsening::free_coarsen_NFirstOnly(), and getRemovementsNum().
|
inlinevirtual |
Returns the maximal number of points that should be removed.
The maximal number of points to removed is set in the constructor of implementation class.
Reimplemented in sgpp::base::SurplusVolumeCoarseningFunctor, and sgpp::base::SurplusCoarseningFunctor.
References getCoarseningThreshold().
Referenced by sgpp::base::HashCoarsening::free_coarsen_NFirstOnly().
|
pure virtual |
This should be returning a coarsening value for every grid point.
The point with the lowest value will be removed first.
storage | reference to the grids storage object |
seq | sequence number in the coefficients array |
Implemented in sgpp::base::SurplusVolumeCoarseningFunctor, and sgpp::base::SurplusCoarseningFunctor.
Referenced by ~CoarseningFunctor().
|
pure virtual |
This should return the initial value of coarsening criterion (e.g.
alpha or error).
Implemented in sgpp::base::SurplusVolumeCoarseningFunctor, and sgpp::base::SurplusCoarseningFunctor.
Referenced by sgpp::base::HashCoarsening::free_coarsen_NFirstOnly(), and ~CoarseningFunctor().