queso-0.53.0
|
A templated (base) class for handling CDFs. More...
#include <ScalarCdf.h>
Public Member Functions | |
Constructor/Destructor methods | |
BaseScalarCdf (const BaseEnvironment &env, const char *prefix) | |
Default constructor. More... | |
virtual | ~BaseScalarCdf () |
Virtual destructor. More... | |
Environment methods | |
const BaseEnvironment & | env () const |
Environment. Access to private attribute m_env. More... | |
const std::string & | prefix () const |
Access to private attribute m_prefix. More... | |
Mathematical methods | |
virtual double | value (T paramValue) const =0 |
Returns the value of the CDF at paramValue . See template specialization. More... | |
virtual T | inverse (double cdfValue) const =0 |
Returns the position of a given value of CDF. See template specialization. More... | |
virtual void | getSupport (T &minHorizontal, T &maxHorizontal) const =0 |
Returns the support (image) of the CDF between two horizontal values (domain). See template specialization. More... | |
Protected Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
T | m_minHorizontal |
T | m_maxHorizontal |
I/O methods | |
virtual void | print (std::ostream &os) const =0 |
Prints the CDF. See template specialization. More... | |
virtual 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... | |
std::ostream & | operator<< (std::ostream &os, const BaseScalarCdf< T > &obj) |
A templated (base) class for handling CDFs.
This class allows the mathematical definition of a cumulative distribution function (CDF), which is a scalar function such as * ; ie a function of one or more variables that has always one-dimensional range, which for the specific CDF case, the image set . The CDF describes the probability that a real-valued random variable X with a given probability distribution will be found at a value less than or equal to x. In the case of a continuous distribution, it gives the area under the probability density function (PDF) from minus infinity to x.
Definition at line 49 of file ScalarCdf.h.
QUESO::BaseScalarCdf< T >::BaseScalarCdf | ( | const BaseEnvironment & | env, |
const char * | prefix | ||
) |
Default constructor.
Instantiates an object of the class given a prefix and the environment.
Definition at line 31 of file ScalarCdf.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseScalarCdf< T >::m_env, QUESO::BaseScalarCdf< T >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
const BaseEnvironment & QUESO::BaseScalarCdf< T >::env | ( | ) | const |
Environment. Access to private attribute m_env.
Definition at line 60 of file ScalarCdf.C.
Referenced by QUESO::horizontalDistance(), and QUESO::StdScalarCdf< T >::StdScalarCdf().
|
pure virtual |
Returns the support (image) of the CDF between two horizontal values (domain). See template specialization.
Implemented in QUESO::StdScalarCdf< T >, and QUESO::SampledScalarCdf< T >.
|
pure virtual |
Returns the position of a given value of CDF. See template specialization.
Implemented in QUESO::StdScalarCdf< T >, and QUESO::SampledScalarCdf< T >.
Referenced by QUESO::horizontalDistance().
const std::string & QUESO::BaseScalarCdf< T >::prefix | ( | ) | const |
Access to private attribute m_prefix.
Definition at line 67 of file ScalarCdf.C.
Referenced by QUESO::horizontalDistance(), and QUESO::StdScalarCdf< T >::StdScalarCdf().
|
pure virtual |
Prints the CDF. See template specialization.
Implemented in QUESO::StdScalarCdf< T >, and QUESO::SampledScalarCdf< T >.
|
virtual |
Writes the CDF of an allowed sub-environment to a file.
This function does nothing and should
not be called by the user.
Reimplemented in QUESO::StdScalarCdf< T >, and QUESO::SampledScalarCdf< T >.
Definition at line 74 of file ScalarCdf.C.
|
pure virtual |
Returns the value of the CDF at paramValue
. See template specialization.
Implemented in QUESO::StdScalarCdf< T >, and QUESO::SampledScalarCdf< T >.
Referenced by QUESO::horizontalDistance().
|
friend |
Definition at line 85 of file ScalarCdf.h.
|
protected |
Definition at line 99 of file ScalarCdf.h.
Referenced by QUESO::BaseScalarCdf< T >::BaseScalarCdf(), QUESO::SampledScalarCdf< T >::SampledScalarCdf(), and QUESO::StdScalarCdf< T >::StdScalarCdf().
|
mutableprotected |
Definition at line 102 of file ScalarCdf.h.
|
mutableprotected |
Definition at line 101 of file ScalarCdf.h.
|
protected |
Definition at line 100 of file ScalarCdf.h.
Referenced by QUESO::BaseScalarCdf< T >::BaseScalarCdf(), QUESO::SampledScalarCdf< T >::SampledScalarCdf(), and QUESO::StdScalarCdf< T >::StdScalarCdf().