SG++-Doxygen-Documentation
|
Abstract class that defines the interface that refinement functors have to provide. More...
#include <RefinementFunctor.hpp>
Public Types | |
typedef double | value_type |
Public Member Functions | |
virtual size_t | getRefinementsNum () const |
Returns the maximal number of points that should be refined. More... | |
virtual double | getRefinementThreshold () const =0 |
Returns the threshold for refinement. More... | |
virtual double | getTotalRefinementValue (GridStorage &storage) const |
Returns the total sum of local (error) indicators used for refinement. More... | |
virtual double | operator() (GridStorage &storage, size_t seq) const =0 |
This should be returning a refinement value for every grid point. More... | |
RefinementFunctor () | |
Constructor. More... | |
virtual double | start () const =0 |
Returns the lower bound of refinement criterion (e.g., alpha or error) (lower bound). More... | |
virtual | ~RefinementFunctor () |
Destructor. More... | |
Abstract class that defines the interface that refinement functors have to provide.
typedef double sgpp::base::RefinementFunctor::value_type |
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
References operator()(), and start().
|
inlinevirtual |
Returns the maximal number of points that should be refined.
The maximal number of points to refine is set in the constructor of the implementing class.
Reimplemented in sgpp::base::PredictiveRefinementIndicator, sgpp::base::ImpurityRefinementIndicator, sgpp::base::ForwardSelectorRefinementIndicator, sgpp::datadriven::DataBasedRefinementFunctor, sgpp::datadriven::ZeroCrossingRefinementFunctor, sgpp::datadriven::GridPointBasedRefinementFunctor, sgpp::datadriven::MultiSurplusRefinementFunctor, sgpp::base::SurplusVolumeRefinementFunctor, and sgpp::base::SurplusRefinementFunctor.
References getRefinementThreshold().
Referenced by sgpp::base::HashRefinementInteraction::collectRefinablePoints(), sgpp::base::MultipleClassRefinement::collectRefinablePoints(), sgpp::base::SubspaceRefinement::collectRefinablePoints(), sgpp::base::ImpurityRefinement::collectRefinablePoints(), sgpp::base::ForwardSelectorRefinement::collectRefinablePoints(), sgpp::base::HashRefinement::collectRefinablePoints(), sgpp::base::HashRefinementBoundaries::collectRefinablePoints(), sgpp::base::PredictiveRefinement::collectRefinablePoints(), sgpp::optimization::HashRefinementMultiple::collectRefinablePoints(), and sgpp::base::HashRefinementBoundariesMaxLevel::refineToMaxLevel().
|
pure virtual |
Returns the threshold for refinement.
Only the grid points with absolute value of refinement criterion (e.g., alpha or error) greater or equal to this threshold will be refined.
Implemented in sgpp::base::PredictiveRefinementIndicator, sgpp::base::ImpurityRefinementIndicator, sgpp::base::ForwardSelectorRefinementIndicator, sgpp::datadriven::DataBasedRefinementFunctor, sgpp::datadriven::ZeroCrossingRefinementFunctor, sgpp::datadriven::GridPointBasedRefinementFunctor, sgpp::datadriven::MultiSurplusRefinementFunctor, sgpp::base::SurplusVolumeRefinementFunctor, and sgpp::base::SurplusRefinementFunctor.
Referenced by getRefinementsNum(), sgpp::base::HashRefinement::refineGridpointsCollection(), sgpp::base::HashRefinementBoundaries::refineGridpointsCollection(), sgpp::base::PredictiveRefinement::refineGridpointsCollection(), and sgpp::base::HashRefinementBoundariesMaxLevel::refineToMaxLevel().
|
inlinevirtual |
Returns the total sum of local (error) indicators used for refinement.
storage | pointer to the grids storage object |
References sgpp::base::HashGridStorage::begin(), sgpp::base::HashGridStorage::end(), and operator()().
|
pure virtual |
This should be returning a refinement value for every grid point.
The point with the highest value will be refined first.
storage | reference to the grids storage object |
seq | sequence number in the coefficients array |
Implemented in sgpp::base::PredictiveRefinementIndicator, sgpp::base::ImpurityRefinementIndicator, sgpp::base::ForwardSelectorRefinementIndicator, sgpp::datadriven::DataBasedRefinementFunctor, sgpp::datadriven::ZeroCrossingRefinementFunctor, sgpp::datadriven::GridPointBasedRefinementFunctor, sgpp::datadriven::MultipleClassRefinementFunctor, sgpp::datadriven::MultiSurplusRefinementFunctor, sgpp::base::SurplusVolumeRefinementFunctor, and sgpp::base::SurplusRefinementFunctor.
Referenced by getTotalRefinementValue(), and ~RefinementFunctor().
|
pure virtual |
Returns the lower bound of refinement criterion (e.g., alpha or error) (lower bound).
The refinement value of grid points to be refined have to be larger than this value
Implemented in sgpp::base::PredictiveRefinementIndicator, sgpp::base::ImpurityRefinementIndicator, sgpp::base::ForwardSelectorRefinementIndicator, sgpp::datadriven::DataBasedRefinementFunctor, sgpp::datadriven::ZeroCrossingRefinementFunctor, sgpp::datadriven::GridPointBasedRefinementFunctor, sgpp::datadriven::MultiSurplusRefinementFunctor, sgpp::base::SurplusVolumeRefinementFunctor, and sgpp::base::SurplusRefinementFunctor.
Referenced by sgpp::base::PredictiveRefinement::refineGridpointsCollection(), sgpp::base::HashRefinementBoundariesMaxLevel::refineToMaxLevel(), and ~RefinementFunctor().