92 throw Exception("Lower and upper bounds are not of same dimension");
95 throw Exception("Bounds for real vector space seem to be incorrect (lower bound must be stricly less than "
double getVolume() const
Compute the volume of the space enclosed by the bounds.
std::vector< double > low
std::vector< double > getDifference() const
Get the difference between the high and low bounds for each dimension: result[i] = high[i] - low[i].
void setHigh(double value)
Set the upper bound in each dimension to a specific value.
void setLow(double value)
Set the lower bound in each dimension to a specific value.
void check() const
Check if the bounds are valid (same length for low and high, high[i] > low[i]). Throw an exception if...
void resize(std::size_t size)
Change the number of dimensions for the bounds.