25 #ifndef UQ_GENERIC_VECTOR_MARGINAL_DENSITY_FUNCTION_H
26 #define UQ_GENERIC_VECTOR_MARGINAL_DENSITY_FUNCTION_H
28 #include <queso/VectorMdf.h>
29 #include <queso/ArrayOfOneDGrids.h>
30 #include <queso/ArrayOfOneDTables.h>
31 #include <queso/Environment.h>
45 template <
class V = GslVector,
class M = GslMatrix>
55 double (*routinePtr)(
const V& paramValues,
const void* routineDataPtr, V& mdfVec),
56 const void* routineDataPtr);
63 void values(
const V& paramValues, V& mdfVec)
const;
71 void print (std::ostream& os)
const;
75 double (*
m_routinePtr)(
const V& paramValues,
const void* routineDataPtr, V& mdfVec);
85 #endif // UQ_GENERIC_VECTOR_MARGINAL_DENSITY_FUNCTION_H
A class for handling generic MDFs of vector functions.
A templated (base) class for handling MDFs of vector functions.
A templated class for handling sets.
void print(std::ostream &os) const
TODO: Prints the vector MDF.
GenericVectorMdf(const char *prefix, const VectorSet< V, M > &domainSet, double(*routinePtr)(const V ¶mValues, const void *routineDataPtr, V &mdfVec), const void *routineDataPtr)
Constructor.
const VectorSet< V, M > & domainSet() const
Returns the domain set; access to protected attribute m_domainSet.
void values(const V ¶mValues, V &mdfVec) const
Finds the values of the vector MDF at each element of paramValues, by calling m_routinePtr, and saves it at mdfValues.
~GenericVectorMdf()
Destructor.
double(* m_routinePtr)(const V ¶mValues, const void *routineDataPtr, V &mdfVec)
const void * m_routineDataPtr