25 #include <queso/VectorCdf.h>
30 template<
class V,
class M>
35 m_env (pdfSupport.env()),
36 m_prefix ((std::string)(prefix)+
"Cdf_"),
37 m_pdfSupport(pdfSupport)
52 template<
class V,
class M>
57 template<
class V,
class M>
64 template<
class V,
class M>
67 const std::string& varNamePrefix,
68 const std::string& fileName,
69 const std::string& fileType,
70 const std::set<unsigned int>& allowedSubEnvIds)
const
72 std::cerr <<
"WARNING: BaseVectorCdf<V,M>::subWriteContents() being used..."
75 if (&varNamePrefix) {};
78 if (&allowedSubEnvIds) {};
87 template <
class V,
class M>
94 for (
unsigned int i = 0; i < cdf1.
pdfSupport().vectorSpace().dimLocal(); ++i) {
unsigned int displayVerbosity() const
const VectorSet< V, M > & pdfSupport() const
Returns the image set (support) of the PDF; access to protected attribute m_pdfSupport.
A templated class for handling sets.
A templated (base) class for handling CDFs of vector functions.
BaseVectorCdf(const char *prefix, const VectorSet< V, M > &pdfSupport)
Default constructor.
virtual const BaseScalarCdf< double > & cdf(unsigned int rowId) const =0
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.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
double horizontalDistance(const BaseScalarCdf< T > &cdf1, const BaseScalarCdf< T > &cdf2, double epsilon)
It calculated the maximum horizontal distance between two CDFs.
const BaseEnvironment & m_env
void horizontalDistances(const BaseVectorCdf< V, M > &cdf1, const BaseVectorCdf< V, M > &cdf2, const V &epsilonVec, V &distances)
It calculated the maximum horizontal distances between two vector CDFs.
virtual ~BaseVectorCdf()
Virtual destructor.