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

◆ Node()

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

◆ evaluate()

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

Referenced by getMSE().

◆ getAverage()

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().

◆ getChildCount()

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

◆ getChildH()

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

Referenced by hierarchize().

◆ getHierarchizationMaxLevel()

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

References hierarchizeMaxLevel.

◆ getLeftChildX()

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

Referenced by hierarchize().

◆ getMSE() [1/2]

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

◆ getMSE() [2/2]

double sgpp::datadriven::PiecewiseConstantRegression::Node::getMSE ( )
inline

◆ getRightChildX()

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

Referenced by hierarchize().

◆ getSupportIndizes()

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

◆ hierarchize()

void sgpp::datadriven::PiecewiseConstantRegression::Node::hierarchize ( double  targetMSE,
size_t  targetMaxLevel,
double  parentValue = 0.0,
size_t  refineDim = 0,
size_t  levelLimit = 0 
)

◆ hierarchizeChild()

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 
)

◆ integrate()

Member Data Documentation

◆ hierarchizeMaxLevel

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

◆ integratedNodes

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

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