25 #ifndef UQ_SAMPLED_SCALAR_CUMULATIVE_DISTRIBUTION_FUNCTION_H
26 #define UQ_SAMPLED_SCALAR_CUMULATIVE_DISTRIBUTION_FUNCTION_H
28 #include <queso/StdOneDGrid.h>
29 #include <queso/Environment.h>
30 #include <queso/ScalarCdf.h>
56 const std::vector<double>& cdfValues);
63 double value (T paramValue)
const;
67 T
inverse (
double cdfValue )
const;
70 void getSupport (T& minHorizontal, T& maxHorizontal)
const;
75 void print (std::ostream& os )
const;
82 const std::string& fileName,
83 const std::string& fileType,
84 const std::set<unsigned int>& allowedSubEnvIds)
const;
99 #endif // UQ_SAMPLED_SCALAR_CUMULATIVE_DISTRIBUTION_FUNCTION_H
const BaseEnvironment & env() const
Environment. Access to private attribute m_env.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
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.
void print(std::ostream &os) const
Prints the CDF (values of the grid points and of the CDF at such grid points).
const BaseOneDGrid< T > & m_cdfGrid
A class for handling sampled CDFs.
Base class for accommodating one-dimensional grids.
A templated (base) class for handling CDFs.
const std::vector< double > & m_cdfValues
const std::string & prefix() const
Access to private attribute m_prefix.
double value(T paramValue) const
Returns the value of the CDF at paramValue.
void getSupport(T &minHorizontal, T &maxHorizontal) const
Returns the support (image) of the CDF between two horizontal values (domain).
T inverse(double cdfValue) const
Returns the position of a given value of CDF.
SampledScalarCdf(const BaseEnvironment &env, const char *prefix, const BaseOneDGrid< T > &cdfGrid, const std::vector< double > &cdfValues)
Default constructor.
~SampledScalarCdf()
Destructor.