queso-0.57.1
|
A class for handling standard CDFs. More...
#include <StdScalarCdf.h>
Public Member Functions | |
Constructor/Destructor methods | |
StdScalarCdf (const BaseEnvironment &env, const char *prefix, const std::vector< T > &cdfGrid, const std::vector< double > &cdfValues) | |
Default constructor. More... | |
~StdScalarCdf () | |
Destructor. More... | |
Mathematical methods | |
double | value (T paramValue) const |
Returns the value of the CDF at paramValue . More... | |
T | inverse (double cdfValue) const |
Returns the position of a given value of CDF. More... | |
void | getSupport (T &minHorizontal, T &maxHorizontal) const |
Returns the support (image) of the CDF between two horizontal values (domain). More... | |
I/O methods | |
void | print (std::ostream &os) const |
Prints the 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::BaseScalarCdf< T > | |
BaseScalarCdf (const BaseEnvironment &env, const char *prefix) | |
Default constructor. More... | |
virtual | ~BaseScalarCdf () |
Virtual destructor. More... | |
const BaseEnvironment & | env () const |
Environment. Access to private attribute m_env. More... | |
const std::string & | prefix () const |
Access to private attribute m_prefix. More... | |
Protected Attributes | |
const StdOneDGrid< T > | m_cdfGrid |
const std::vector< double > | m_cdfValues |
SampledScalarCdf< T > * | m_sampledCdfGrid |
Protected Attributes inherited from QUESO::BaseScalarCdf< T > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
T | m_minHorizontal |
T | m_maxHorizontal |
A class for handling standard CDFs.
This class implements a standard cumulative distribution function (CDF). Its protected attribute m_sampledCdfGrid is an object of the class SampledScalarCdf<T>, so all members of this class are implemented using the members of SampledScalarCdf<T>.
Definition at line 48 of file StdScalarCdf.h.
QUESO::StdScalarCdf< T >::StdScalarCdf | ( | const BaseEnvironment & | env, |
const char * | prefix, | ||
const std::vector< T > & | cdfGrid, | ||
const std::vector< double > & | cdfValues | ||
) |
Default constructor.
Instantiates an object of the class given a prefix, the environment, the grid points where it will be evaluated and its resulting values.
Definition at line 31 of file StdScalarCdf.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseScalarCdf< T >::env(), QUESO::StdScalarCdf< T >::m_cdfGrid, QUESO::StdScalarCdf< T >::m_cdfValues, QUESO::BaseScalarCdf< T >::m_env, QUESO::BaseScalarCdf< T >::m_prefix, QUESO::StdScalarCdf< T >::m_sampledCdfGrid, QUESO::BaseScalarCdf< T >::prefix(), and QUESO::BaseEnvironment::subDisplayFile().
QUESO::StdScalarCdf< T >::~StdScalarCdf | ( | ) |
Destructor.
Definition at line 58 of file StdScalarCdf.C.
|
virtual |
Returns the support (image) of the CDF between two horizontal values (domain).
Implements QUESO::BaseScalarCdf< T >.
Definition at line 79 of file StdScalarCdf.C.
|
virtual |
Returns the position of a given value of CDF.
Implements QUESO::BaseScalarCdf< T >.
Definition at line 72 of file StdScalarCdf.C.
|
virtual |
Prints the CDF (values of the grid points and of the CDF at such grid points).
Implements QUESO::BaseScalarCdf< T >.
Definition at line 86 of file StdScalarCdf.C.
|
virtual |
Writes the CDF of an allowed sub-environment to a file.
It will write the data in Octave/Matlab compatible format.
Reimplemented from QUESO::BaseScalarCdf< T >.
Definition at line 94 of file StdScalarCdf.C.
|
virtual |
Returns the value of the CDF at paramValue
.
Implements QUESO::BaseScalarCdf< T >.
Definition at line 65 of file StdScalarCdf.C.
|
protected |
Definition at line 93 of file StdScalarCdf.h.
Referenced by QUESO::StdScalarCdf< T >::StdScalarCdf().
|
protected |
Definition at line 94 of file StdScalarCdf.h.
Referenced by QUESO::StdScalarCdf< T >::StdScalarCdf().
|
protected |
Definition at line 95 of file StdScalarCdf.h.
Referenced by QUESO::StdScalarCdf< T >::StdScalarCdf().