25 #ifndef UQ_BOX_SUBSET_H
26 #define UQ_BOX_SUBSET_H
28 #include <queso/VectorSpace.h>
29 #include <queso/VectorSubset.h>
43 template <
class V = GslVector,
class M = GslMatrix>
83 void print (std::ostream& os)
const;
100 #endif // UQ_BOX_SUBSET_H
void centroid(V &vec) const
Returns the centroid of this box subset in the vector vec.
void moments(M &mat) const
Returns the moments of inertia of this box subset in the matrix mat.
A class representing a vector space.
const std::string & prefix() const
Access to private attribute m_prefix.
A templated class for handling subsets.
A templated class for handling sets.
const V & minValues() const
Vector of the minimum values of the box subset.
Class representing a subset of a vector space shaped like a hypercube.
void print(std::ostream &os) const
Prints the volume, the minimum and the maximum values of this.
V m_minValues
Vector of templated type V to store the minimum values of the box subset class.
V m_maxValues
Vector of templated type V to store the maximum values of the box subset class.
BoxSubset(const char *prefix, const VectorSpace< V, M > &vectorSpace, const V &minValues, const V &maxValues)
Shaped, default constructor.
bool contains(const V &vec) const
Checks whether this box subset contains vector vec.
const V & maxValues() const
Vector of the maximum values of the box subset.
const VectorSpace< V, M > & vectorSpace() const
Vector space to which this set belongs to. See template specialization.