|
queso-0.57.1
|
Class for accommodating standard one-dimensional grids. More...
#include <StdOneDGrid.h>
Public Member Functions | |
Constructor/Destructor methods | |
| StdOneDGrid (const BaseEnvironment &env, const char *prefix, const std::vector< T > &points) | |
| Default constructor. More... | |
| ~StdOneDGrid () | |
| Destructor. More... | |
Accessor methods | |
| T | operator[] (unsigned int i) const |
| Returns the position of the i-th point in the grid. More... | |
Mathematical methods | |
| unsigned int | size () const |
| Grid size; the amount of points which defines the grid. More... | |
| unsigned int | findIntervalId (const T ¶mValue) const |
| Finds the ID of an interval. See template specialization. More... | |
Public Member Functions inherited from QUESO::BaseOneDGrid< T > | |
| BaseOneDGrid (const BaseEnvironment &env, const char *prefix) | |
| Default constructor. More... | |
| virtual | ~BaseOneDGrid () |
| Virtual destructor. More... | |
| void | print (std::ostream &ofsvar) const |
| Prints the values of the grid points. More... | |
Protected Attributes | |
| std::vector< T > | m_points |
Protected Attributes inherited from QUESO::BaseOneDGrid< T > | |
| const BaseEnvironment & | m_env |
| std::string | m_prefix |
Class for accommodating standard one-dimensional grids.
This class implements a standard one-dimensional grid, which is required, for instance, in the evaluation of the cumulative distribution function (CDF) of a random variable.
Definition at line 45 of file StdOneDGrid.h.
| QUESO::StdOneDGrid< T >::StdOneDGrid | ( | const BaseEnvironment & | env, |
| const char * | prefix, | ||
| const std::vector< T > & | points | ||
| ) |
Default constructor.
Definition at line 30 of file StdOneDGrid.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseOneDGrid< T >::m_env, QUESO::BaseOneDGrid< T >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
| QUESO::StdOneDGrid< T >::~StdOneDGrid | ( | ) |
|
virtual |
Finds the ID of an interval. See template specialization.
Implements QUESO::BaseOneDGrid< T >.
Definition at line 74 of file StdOneDGrid.C.
|
virtual |
Returns the position of the i-th point in the grid.
Implements QUESO::BaseOneDGrid< T >.
Definition at line 65 of file StdOneDGrid.C.
|
virtual |
Grid size; the amount of points which defines the grid.
Implements QUESO::BaseOneDGrid< T >.
Definition at line 58 of file StdOneDGrid.C.
|
protected |
Definition at line 76 of file StdOneDGrid.h.