queso-0.53.0
|
A class for handling sampled vector CDFs. More...
#include <SampledVectorCdf.h>
Public Member Functions | |
Constructor/Destructor methods | |
SampledVectorCdf (const char *prefix, const ArrayOfOneDGrids< V, M > &oneDGrids, const ArrayOfOneDTables< V, M > &cdfValues) | |
Default constructor. More... | |
~SampledVectorCdf () | |
Destructor. More... | |
Mathematical methods | |
void | values (const V ¶mValues, V &cdfVec) const |
TODO: Returns the values of the vector CDF at each element of paramValues . More... | |
const BaseScalarCdf< double > & | cdf (unsigned int rowId) const |
Returns a scalar CDF stored at row rowId of the vector CDF. More... | |
I/O methods | |
void | print (std::ostream &os) const |
Prints the vector CDF (values of the grid points and of the CDF at such grid points). More... | |
void | subWriteContents (const std::string &varNamePrefix, const std::string &fileName, const std::string &fileType, const std::set< unsigned int > &allowedSubEnvIds) const |
Writes the CDF of an allowed sub-environment to a file. More... | |
Public Member Functions inherited from QUESO::BaseVectorCdf< V, M > | |
BaseVectorCdf (const char *prefix, const VectorSet< V, M > &pdfSupport) | |
Default constructor. More... | |
virtual | ~BaseVectorCdf () |
Virtual destructor. More... | |
const VectorSet< V, M > & | pdfSupport () const |
Returns the image set (support) of the PDF; access to protected attribute m_pdfSupport . More... | |
Protected Attributes | |
DistArray< SampledScalarCdf < double > * > | m_cdfs |
Protected Attributes inherited from QUESO::BaseVectorCdf< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_pdfSupport |
A class for handling sampled vector CDFs.
This class implements a sampled vector cumulative distribution function (CDF), given the grid points where it will be sampled and it returns its values.
Definition at line 51 of file SampledVectorCdf.h.
QUESO::SampledVectorCdf< V, M >::SampledVectorCdf | ( | const char * | prefix, |
const ArrayOfOneDGrids< V, M > & | oneDGrids, | ||
const ArrayOfOneDTables< V, M > & | cdfValues | ||
) |
Default constructor.
Instantiates an object of the class given a prefix and the grid points where it will be sampled/evaluated.
Definition at line 31 of file SampledVectorCdf.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::ArrayOfOneDGrids< V, M >::grid(), QUESO::SampledVectorCdf< V, M >::m_cdfs, QUESO::BaseVectorCdf< V, M >::m_env, QUESO::BaseVectorCdf< V, M >::m_prefix, QUESO::ArrayOfOneDTables< V, M >::oneDTable(), and QUESO::BaseEnvironment::subDisplayFile().
QUESO::SampledVectorCdf< V, M >::~SampledVectorCdf | ( | ) |
Destructor.
Definition at line 62 of file SampledVectorCdf.C.
|
virtual |
Returns a scalar CDF stored at row rowId
of the vector CDF.
Implements QUESO::BaseVectorCdf< V, M >.
Definition at line 81 of file SampledVectorCdf.C.
References queso_require_less_msg.
|
virtual |
Prints the vector CDF (values of the grid points and of the CDF at such grid points).
Implements QUESO::BaseVectorCdf< V, M >.
Definition at line 92 of file SampledVectorCdf.C.
References QUESO::SampledVectorCdf< V, M >::m_cdfs.
|
virtual |
Writes the CDF of an allowed sub-environment to a file.
Reimplemented from QUESO::BaseVectorCdf< V, M >.
Definition at line 105 of file SampledVectorCdf.C.
References queso_require_greater_equal_msg.
|
virtual |
TODO: Returns the values of the vector CDF at each element of paramValues
.
Implements QUESO::BaseVectorCdf< V, M >.
Definition at line 71 of file SampledVectorCdf.C.
References queso_error_msg.
|
protected |
Definition at line 91 of file SampledVectorCdf.h.
Referenced by QUESO::SampledVectorCdf< V, M >::print(), and QUESO::SampledVectorCdf< V, M >::SampledVectorCdf().