SG++-Doxygen-Documentation
sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates Class Reference

#include <OperationMakePositiveCandidateSetAlgorithm.hpp>

Inheritance diagram for sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates:
sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm

Public Member Functions

void nextCandidates (base::Grid &grid, base::DataVector &alpha, size_t levelSum, std::vector< std::shared_ptr< base::HashGridPoint >> &candidates) override
 Load the next candidate set that contains grid points with the currently explored levelsum. More...
 
size_t numCandidates () override
 
base::DataVectornumCandidatesPerIteration () override
 
 OperationMakePositiveLoadFullGridCandidates (size_t maxLevel)
 
virtual ~OperationMakePositiveLoadFullGridCandidates ()
 
- Public Member Functions inherited from sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm
size_t costsComputingCandidates ()
 
base::DataVectorcostsComputingCandidatesPerIteration ()
 
base::DataVectornumCandidatesPerLevel ()
 
 OperationMakePositiveCandidateSetAlgorithm (size_t maxLevel)
 Constructor. More...
 
void setVerbose (bool pverbose)
 Set verbosity level. More...
 
virtual ~OperationMakePositiveCandidateSetAlgorithm ()
 Desctructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm
void findNodesWithNegativeCoefficients (base::DataVector &alpha, std::vector< size_t > &negativeGridPoints, double tol=-1e-14)
 Extract grid points with negative coefficient. More...
 
- Protected Attributes inherited from sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm
base::DataVector costsPerIteration
 comparison costs per iteration More...
 
base::DataVector gridPointsPerLevel
 candiddate grid points per level More...
 
size_t iteration
 iteration counter More...
 
size_t maxLevel
 maximum full grid level for the candidate set More...
 
bool verbose
 verbosity level More...
 

Constructor & Destructor Documentation

sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates::OperationMakePositiveLoadFullGridCandidates ( size_t  maxLevel)
explicit
sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates::~OperationMakePositiveLoadFullGridCandidates ( )
virtual

Member Function Documentation

void sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates::nextCandidates ( base::Grid grid,
base::DataVector alpha,
size_t  levelSum,
std::vector< std::shared_ptr< base::HashGridPoint >> &  candidates 
)
overridevirtual

Load the next candidate set that contains grid points with the currently explored levelsum.

Parameters
gridcurrent sparse grid that needs to be extended
alphacorresponding coefficient vector
levelSumcurrent levelsum to be explored
candidatesvector that contains the candidate set for the current levelsum

Implements sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm.

References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridStorage::getMaxLevel(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::HashGridStorage::getSize(), sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm::gridPointsPerLevel, python.statsfileInfo::i, sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm::iteration, sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm::maxLevel, and sgpp::base::DataVector::setAll().

size_t sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates::numCandidates ( )
overridevirtual
Returns
total number of candidates

Implements sgpp::datadriven::OperationMakePositiveCandidateSetAlgorithm.

base::DataVector & sgpp::datadriven::OperationMakePositiveLoadFullGridCandidates::numCandidatesPerIteration ( )
overridevirtual

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