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

#include <SparseGridDensityEstimator.hpp>

Inheritance diagram for sgpp::datadriven::SparseGridDensityEstimatorConfiguration:
json::JSON json::DictNode json::Node

Public Member Functions

SparseGridDensityEstimatorConfigurationclone () override
 
void initConfig ()
 
 SparseGridDensityEstimatorConfiguration ()
 
 SparseGridDensityEstimatorConfiguration (const std::string &fileName)
 
sgpp::datadriven::RegularizationType stringToRegularizationType (std::string &regularizationType)
 
sgpp::solver::SLESolverType stringToSolverType (std::string &solverType)
 
- Public Member Functions inherited from json::JSON
void clear ()
 
void deserialize (std::string content)
 
void deserializeFromString (const std::string &content)
 
 JSON (const std::string &fileName)
 
 JSON ()
 
 JSON (const JSON &original)
 
void serialize (const std::string &outFileName)
 
- Public Member Functions inherited from json::DictNode
void addAttribute (const std::string &name, std::unique_ptr< Node > node) override
 
NodeaddDictAttr (const std::string &name) override
 
NodeaddIDAttr (const std::string &name, const std::string &value) override
 
NodeaddIDAttr (const std::string &name, const char *value) override
 
NodeaddIDAttr (const std::string &name, const double &value) override
 
NodeaddIDAttr (const std::string &name, const uint64_t &value) override
 
NodeaddIDAttr (const std::string &name, const int64_t &value) override
 
NodeaddIDAttr (const std::string &name, const bool &value) override
 
NodeaddListAttr (const std::string &name) override
 
NodeaddTextAttr (const std::string &name, const std::string &value) override
 
bool contains (const std::string &key) override
 
 DictNode ()
 
 DictNode (const DictNode &original)
 
std::unique_ptr< Nodeerase (Node &node) override
 
std::vector< std::string > & keys () override
 
DictNodeoperator= (const DictNode &right)
 
Nodeoperator= (const Node &right) override
 
Nodeoperator[] (const std::string &key) override
 
void parse (std::vector< Token > &stream) override
 
void parseAttributes (std::vector< Token > &stream)
 
std::unique_ptr< NoderemoveAttribute (const std::string name) override
 
NodereplaceDictAttr (const std::string &name) override
 
NodereplaceIDAttr (const std::string &name, const std::string &value) override
 
NodereplaceIDAttr (const std::string &name, const char *value) override
 
NodereplaceIDAttr (const std::string &name, const double &value) override
 
NodereplaceIDAttr (const std::string &name, const uint64_t &value) override
 
NodereplaceIDAttr (const std::string &name, const int64_t &value) override
 
NodereplaceIDAttr (const std::string &name, const bool &value) override
 
NodereplaceListAttr (const std::string &name) override
 
NodereplaceTextAttr (const std::string &name, const std::string &value) override
 
void serialize (std::ostream &outFile, size_t indentWidth) override
 
size_t size () override
 
- Public Member Functions inherited from json::Node
virtual NodeaddDictValue ()
 
virtual NodeaddIdValue (const std::string &value)
 
virtual NodeaddIdValue (const char *value)
 
virtual NodeaddIdValue (const double &value)
 
virtual NodeaddIdValue (const uint64_t &value)
 
virtual NodeaddIdValue (const int64_t &value)
 
virtual NodeaddIdValue (const bool &value)
 
virtual NodeaddListValue ()
 
virtual NodeaddTextValue (const std::string &value)
 
virtual void addValue (std::unique_ptr< Node > node)
 
virtual std::unique_ptr< Nodeerase ()
 
virtual std::string & get ()
 
virtual bool getBool ()
 
virtual double getDouble ()
 
virtual int64_t getInt ()
 
virtual uint64_t getUInt ()
 
 Node ()
 
virtual Nodeoperator[] (const size_t index)
 
virtual std::unique_ptr< NoderemoveValue (size_t index)
 
virtual void set (const std::string &value)
 
virtual void setBool (bool boolValue)
 
virtual void setDouble (double doubleValue)
 
virtual void setInt (int64_t intValue)
 
virtual void setUInt (uint64_t uintValue)
 
virtual ~Node ()=default
 

Friends

class SparseGridDensityEstimator
 

Additional Inherited Members

- Public Attributes inherited from json::Node
size_t orderedKeyIndex
 
Nodeparent
 
- Protected Attributes inherited from json::DictNode
std::map< std::string, std::unique_ptr< Node > > attributes
 
std::vector< std::string > keyOrder
 
- Static Protected Attributes inherited from json::Node
static const int SERIALIZE_INDENT = 3
 

Constructor & Destructor Documentation

◆ SparseGridDensityEstimatorConfiguration() [1/2]

sgpp::datadriven::SparseGridDensityEstimatorConfiguration::SparseGridDensityEstimatorConfiguration ( )

References initConfig().

Referenced by clone().

◆ SparseGridDensityEstimatorConfiguration() [2/2]

sgpp::datadriven::SparseGridDensityEstimatorConfiguration::SparseGridDensityEstimatorConfiguration ( const std::string &  fileName)
explicit

References sgpp::base::GeneralGridConfiguration::boundaryLevel_, json::DictNode::contains(), sgpp::base::GeneralGridConfiguration::dim_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::enable_, sgpp::solver::SLESolverConfiguration::eps_, sgpp::base::GeneralGridConfiguration::filename_, sgpp::datadriven::FullGrid, sgpp::datadriven::HybridFullIntersections, initConfig(), sgpp::datadriven::InterpolateBoundaries1d, sgpp::datadriven::InterpolateExp, sgpp::datadriven::Intersections, sgpp::datadriven::IntersectionsJoin, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::kfold_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambda_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambdaEnd_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambdaStart_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambdaSteps_, sgpp::base::GeneralGridConfiguration::level_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::logScale_, sgpp::datadriven::SGDEConfiguration::makePositive_, sgpp::datadriven::SGDEConfiguration::makePositive_candidateSearchAlgorithm_, sgpp::datadriven::SGDEConfiguration::makePositive_generateConsistentGrid_, sgpp::datadriven::SGDEConfiguration::makePositive_interpolationAlgorithm_, sgpp::datadriven::SGDEConfiguration::makePositive_verbose_, sgpp::base::GeneralGridConfiguration::maxDegree_, sgpp::solver::SLESolverConfiguration::maxIterations_, sgpp::base::AdaptivityConfiguration::noPoints_, sgpp::base::AdaptivityConfiguration::numRefinements_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::seed_, sgpp::datadriven::SetToZero, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::shuffle_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::silent_, sgpp::base::Grid::stringToGridType(), stringToRegularizationType(), stringToSolverType(), sgpp::solver::SLESolverConfiguration::threshold_, sgpp::datadriven::RegularizationConfiguration::type_, sgpp::solver::SLESolverConfiguration::type_, sgpp::base::GeneralGridConfiguration::type_, sgpp::datadriven::SGDEConfiguration::unitIntegrand_, sgpp::solver::SLESolverConfiguration::verbose_, and json::json_exception::what().

Member Function Documentation

◆ clone()

SparseGridDensityEstimatorConfiguration * sgpp::datadriven::SparseGridDensityEstimatorConfiguration::clone ( )
overridevirtual

Reimplemented from json::JSON.

References SparseGridDensityEstimatorConfiguration().

◆ initConfig()

void sgpp::datadriven::SparseGridDensityEstimatorConfiguration::initConfig ( )

References sgpp::base::GeneralGridConfiguration::boundaryLevel_, sgpp::solver::CG, sgpp::base::GeneralGridConfiguration::dim_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::enable_, sgpp::solver::SLESolverConfiguration::eps_, sgpp::datadriven::Intersections, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::kfold_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambda_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambdaEnd_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambdaStart_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::lambdaSteps_, sgpp::datadriven::Laplace, sgpp::base::GeneralGridConfiguration::level_, sgpp::base::Linear, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::logScale_, sgpp::datadriven::SGDEConfiguration::makePositive_, sgpp::datadriven::SGDEConfiguration::makePositive_candidateSearchAlgorithm_, sgpp::datadriven::SGDEConfiguration::makePositive_generateConsistentGrid_, sgpp::datadriven::SGDEConfiguration::makePositive_interpolationAlgorithm_, sgpp::datadriven::SGDEConfiguration::makePositive_verbose_, sgpp::base::GeneralGridConfiguration::maxDegree_, sgpp::solver::SLESolverConfiguration::maxIterations_, sgpp::base::AdaptivityConfiguration::noPoints_, sgpp::base::AdaptivityConfiguration::numRefinements_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::seed_, sgpp::datadriven::SetToZero, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::shuffle_, sgpp::datadriven::CrossvalidationForRegularizationConfiguration::silent_, sgpp::solver::SLESolverConfiguration::threshold_, sgpp::datadriven::RegularizationConfiguration::type_, sgpp::solver::SLESolverConfiguration::type_, sgpp::base::GeneralGridConfiguration::type_, sgpp::datadriven::SGDEConfiguration::unitIntegrand_, and sgpp::solver::SLESolverConfiguration::verbose_.

Referenced by SparseGridDensityEstimatorConfiguration().

◆ stringToRegularizationType()

sgpp::datadriven::RegularizationType sgpp::datadriven::SparseGridDensityEstimatorConfiguration::stringToRegularizationType ( std::string &  regularizationType)

◆ stringToSolverType()

sgpp::solver::SLESolverType sgpp::datadriven::SparseGridDensityEstimatorConfiguration::stringToSolverType ( std::string &  solverType)

Friends And Related Function Documentation

◆ SparseGridDensityEstimator

friend class SparseGridDensityEstimator
friend

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