25 #ifndef UQ_SCALAR_CUMULATIVE_DISTRIBUTION_FUNCTION_H
26 #define UQ_SCALAR_CUMULATIVE_DISTRIBUTION_FUNCTION_H
28 #include <queso/StdOneDGrid.h>
29 #include <queso/Environment.h>
67 const std::string&
prefix ()
const;
72 virtual double value (T paramValue )
const = 0;
76 virtual T
inverse (
double cdfValue )
const = 0;
79 virtual void getSupport (T& minHorizontal, T& maxHorizontal)
const = 0;
83 virtual void print (std::ostream& os )
const = 0;
94 const std::string& fileName,
95 const std::string& fileType,
96 const std::set<unsigned int>& allowedSubEnvIds)
const;
122 #endif // UQ_SCALAR_CUMULATIVE_DISTRIBUTION_FUNCTION_H
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.
const std::string & prefix() const
Access to private attribute m_prefix.
double horizontalDistance(const BaseScalarCdf< T > &cdf1, const BaseScalarCdf< T > &cdf2, double epsilon)
It calculated the maximum horizontal distance between two CDFs.
A templated (base) class for handling CDFs.
friend std::ostream & operator<<(std::ostream &os, const BaseScalarCdf< T > &obj)
virtual void print(std::ostream &os) const =0
Prints the CDF. See template specialization.
virtual T inverse(double cdfValue) const =0
Returns the position of a given value of CDF. See template specialization.
BaseScalarCdf(const BaseEnvironment &env, const char *prefix)
Default constructor.
virtual ~BaseScalarCdf()
Virtual destructor.
const BaseEnvironment & env() const
Environment. Access to private attribute m_env.
const BaseEnvironment & m_env
virtual double value(T paramValue) const =0
Returns the value of the CDF at paramValue. See template specialization.
virtual void getSupport(T &minHorizontal, T &maxHorizontal) const =0
Returns the support (image) of the CDF between two horizontal values (domain). See template specializ...
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...