SG++-Doxygen-Documentation
sgpp::datadriven::PiecewiseConstantRegression::Node Class Reference

#include <Node.hpp>

Public Member Functions

double evaluate (std::vector< double > &point)
 
double getAverage (std::vector< size_t > &supportIndizes, std::vector< double > &x, std::vector< double > &h)
 
uint64_t getChildCount ()
 
std::vector< double > getChildH (size_t d)
 
uint64_t getHierarchizationMaxLevel ()
 
std::vector< double > getLeftChildX (size_t d)
 
double getMSE (std::vector< size_t > &supportIndizes, std::vector< double > &x, std::vector< double > &h, double supportValue)
 
double getMSE ()
 
std::vector< double > getRightChildX (size_t d)
 
std::vector< size_t > getSupportIndizes (std::vector< double > &x, std::vector< double > &h, std::vector< size_t > &parentSupport)
 
void hierarchize (double targetMSE, size_t targetMaxLevel, double parentValue=0.0, size_t refineDim=0, size_t levelLimit=0)
 
std::unique_ptr< NodehierarchizeChild (std::vector< double > &x, std::vector< double > &h, std::vector< size_t > &parentSupport, double supportValue, double targetMSE, size_t targetMaxLevel, size_t nextDim, size_t levelLimit)
 
double integrate (sgpp::base::GridPoint &gridPoint, size_t &integratedNodes, size_t levelLimit=0)
 
 Node (std::vector< double > x, std::vector< double > h, std::vector< size_t > supportIndizes, base::DataMatrix &dataset, base::DataVector &values, bool verbose=false)
 

Static Public Attributes

static uint64_t hierarchizeMaxLevel
 
static uint64_t integratedNodes
 

Constructor & Destructor Documentation

sgpp::datadriven::PiecewiseConstantRegression::Node::Node ( std::vector< double >  x,
std::vector< double >  h,
std::vector< size_t >  supportIndizes,
base::DataMatrix dataset,
base::DataVector values,
bool  verbose = false 
)

Member Function Documentation

double sgpp::datadriven::PiecewiseConstantRegression::Node::evaluate ( std::vector< double > &  point)

Referenced by getMSE().

double sgpp::datadriven::PiecewiseConstantRegression::Node::getAverage ( std::vector< size_t > &  supportIndizes,
std::vector< double > &  x,
std::vector< double > &  h 
)

References python.statsfileInfo::i.

Referenced by hierarchize().

uint64_t sgpp::datadriven::PiecewiseConstantRegression::Node::getChildCount ( )
std::vector< double > sgpp::datadriven::PiecewiseConstantRegression::Node::getChildH ( size_t  d)

Referenced by hierarchize().

uint64_t sgpp::datadriven::PiecewiseConstantRegression::Node::getHierarchizationMaxLevel ( )

References hierarchizeMaxLevel.

std::vector< double > sgpp::datadriven::PiecewiseConstantRegression::Node::getLeftChildX ( size_t  d)

Referenced by hierarchize().

double sgpp::datadriven::PiecewiseConstantRegression::Node::getMSE ( std::vector< size_t > &  supportIndizes,
std::vector< double > &  x,
std::vector< double > &  h,
double  supportValue 
)
double sgpp::datadriven::PiecewiseConstantRegression::Node::getMSE ( )
inline
std::vector< double > sgpp::datadriven::PiecewiseConstantRegression::Node::getRightChildX ( size_t  d)

Referenced by hierarchize().

std::vector< size_t > sgpp::datadriven::PiecewiseConstantRegression::Node::getSupportIndizes ( std::vector< double > &  x,
std::vector< double > &  h,
std::vector< size_t > &  parentSupport 
)
void sgpp::datadriven::PiecewiseConstantRegression::Node::hierarchize ( double  targetMSE,
size_t  targetMaxLevel,
double  parentValue = 0.0,
size_t  refineDim = 0,
size_t  levelLimit = 0 
)
std::unique_ptr< Node > sgpp::datadriven::PiecewiseConstantRegression::Node::hierarchizeChild ( std::vector< double > &  x,
std::vector< double > &  h,
std::vector< size_t > &  parentSupport,
double  supportValue,
double  targetMSE,
size_t  targetMaxLevel,
size_t  nextDim,
size_t  levelLimit 
)

Member Data Documentation

uint64_t sgpp::datadriven::PiecewiseConstantRegression::Node::hierarchizeMaxLevel
static
uint64_t sgpp::datadriven::PiecewiseConstantRegression::Node::integratedNodes
static

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