SG++-Doxygen-Documentation
|
This class implements a utility that allows you to print a grid to file. More...
#include <GridPrinter.hpp>
Public Member Functions | |
GridPrinter (Grid &SparseGrid) | |
Std-Constructor. More... | |
virtual void | printGrid (DataVector &alpha, std::string tFilename, size_t PointsPerDimension) |
Print the grid with its function to a file; front end. More... | |
virtual void | printGridDomain (DataVector &alpha, std::string tFilename, BoundingBox &GridArea, size_t PointsPerDimension) |
Print the grid with its function to a file; front end. More... | |
virtual void | printLevelIndexGrid (std::string tFilename) |
Print the grid points in level/index format to a file; front end. More... | |
virtual void | printSparseGrid (DataVector &alpha, std::string tFilename, bool bSurplus) |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus. More... | |
virtual void | printSparseGridExpTransform (DataVector &alpha, std::string tFilename, bool bSurplus) |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus. More... | |
virtual | ~GridPrinter () |
Std-Destructor. More... | |
Protected Attributes | |
Grid * | myGrid |
Pointer to the grid Object, which should be printed. More... | |
This class implements a utility that allows you to print a grid to file.
These files can be plotted with gnuplot.
|
explicit |
Std-Constructor.
SparseGrid | Reference to a Spare Grid, that should be printed |
|
virtual |
Std-Destructor.
|
virtual |
Print the grid with its function to a file; front end.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absolute path to the file the grid is written into |
PointsPerDimension | specifies how many functions evaluations in every dimension should be calculated |
Reimplemented in sgpp::base::GridPrinterForStretching.
References sgpp::op_factory::createOperationEval(), sgpp::base::BoundingBox::getBoundary(), sgpp::base::Grid::getBoundingBox(), sgpp::base::Grid::getDimension(), sgpp::base::Grid::getSize(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::BoundingBox1D::leftBoundary, myGrid, chess::point, python.leja::points, and sgpp::base::BoundingBox1D::rightBoundary.
Referenced by sgpp::datadriven::LearnerBaseSP::dumpFunction(), sgpp::datadriven::LearnerBase::dumpFunction(), and sgpp::pde::PDESolver::printGrid().
|
virtual |
Print the grid with its function to a file; front end.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absolute path to the file the grid is written into |
GridArea | The area in which the function should be plotted |
PointsPerDimension | specifies how many functions evaluations in every dimension should be calculated |
Reimplemented in sgpp::base::GridPrinterForStretching.
References sgpp::op_factory::createOperationEval(), sgpp::base::BoundingBox::getBoundary(), sgpp::base::Grid::getDimension(), sgpp::base::Grid::getSize(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::BoundingBox1D::leftBoundary, myGrid, chess::point, and sgpp::base::BoundingBox1D::rightBoundary.
Referenced by sgpp::pde::PDESolver::printGridDomain().
|
virtual |
Print the grid points in level/index format to a file; front end.
tFilename | absolute path to the file the grid is written into |
References sgpp::base::HashGridPoint::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::Grid::getSize(), sgpp::base::Grid::getStorage(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, and myGrid.
Referenced by sgpp::pde::PDESolver::printLevelIndexGrid().
|
virtual |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absoulte path to the file the grid is written into |
bSurplus | specifies whether the surplus (true) or the node basis value (false) is written |
Reimplemented in sgpp::base::GridPrinterForStretching.
References sgpp::op_factory::createOperationHierarchisation(), chess::dim, python.toolsExtended::doDehierarchisation(), sgpp::base::HashGridStorage::getCoordinates(), sgpp::base::Grid::getDimension(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::Grid::getSize(), sgpp::base::Grid::getStorage(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, myGrid, and analyse_erg::tmp.
Referenced by sgpp::datadriven::LearnerBaseSP::dumpGrid(), sgpp::datadriven::LearnerBase::dumpGrid(), sgpp::pde::PDESolver::printSparseGrid(), and sgpp::solver::Euler::solve().
|
virtual |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus.
The coordinates of the grid points are pushed the exp function. So log transformed grids can be plotted in cartesion coordinates.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absoulte path to the file the grid is written into |
bSurplus | specifies whether the surplus (true) or the node basis value (false) is written |
Reimplemented in sgpp::base::GridPrinterForStretching.
References sgpp::op_factory::createOperationHierarchisation(), chess::dim, python.toolsExtended::doDehierarchisation(), sgpp::base::HashGridStorage::getCoordinates(), sgpp::base::Grid::getDimension(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::Grid::getSize(), sgpp::base::Grid::getStorage(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, myGrid, and analyse_erg::tmp.
Referenced by sgpp::pde::PDESolver::printSparseGridExpTransform().
|
protected |
Pointer to the grid Object, which should be printed.
Referenced by sgpp::base::GridPrinterForStretching::GridPrinterForStretching(), sgpp::base::GridPrinterForStretching::printGrid(), printGrid(), printGridDomain(), sgpp::base::GridPrinterForStretching::printGridDomainStretching(), printLevelIndexGrid(), sgpp::base::GridPrinterForStretching::printSparseGrid(), printSparseGrid(), sgpp::base::GridPrinterForStretching::printSparseGridExpTransform(), and printSparseGridExpTransform().