22 #ifndef UNFIT_INCLUDE_BOUNDS_HPP_ 23 #define UNFIT_INCLUDE_BOUNDS_HPP_ 55 Bounds(std::size_t number_of_bounds);
75 void GetBounds(std::vector<double> &lower_bound,
76 std::vector<double> &upper_bound)
const;
127 bool IsWithinBounds(std::size_t index,
double point)
const noexcept;
140 bool IsWithinBounds(
const std::vector<double> &point)
const noexcept;
161 bool SetBounds(std::size_t index,
double lower_bound,
double upper_bound);
178 bool SetBounds(
const std::vector<double> &lower_bound,
179 const std::vector<double> &upper_bound);
void GetBounds(std::vector< double > &lower_bound, std::vector< double > &upper_bound) const
Definition: Bounds.cpp:44
bool IsBelowUpperBound(std::size_t index, double point) const noexcept
Definition: Bounds.cpp:71
bool SetLowerBound(std::size_t index, double lower_bound)
Definition: Bounds.cpp:142
Definition: Bounds.hpp:27
double GetUpperBound(std::size_t index) const noexcept
Definition: Bounds.cpp:147
void ClampWithinBounds(std::vector< double > &point)
Definition: Bounds.cpp:51
std::vector< double > upper_bound_
Definition: Bounds.hpp:250
void ResetBounds()
Definition: Bounds.cpp:93
double GetLowerBound(std::size_t index) const noexcept
Definition: Bounds.cpp:136
std::size_t GetNumberOfBounds() const noexcept
Definition: Bounds.cpp:59
bool IsWithinBounds(std::size_t index, double point) const noexcept
Definition: Bounds.cpp:78
void SetNumberOfBounds(std::size_t number_of_bounds)
Definition: Bounds.cpp:130
bool IsAboveLowerBound(std::size_t index, double point) const noexcept
Definition: Bounds.cpp:64
Bounds()
Definition: Bounds.cpp:34
bool SetUpperBound(std::size_t index, double upper_bound)
Definition: Bounds.cpp:153
std::vector< double > lower_bound_
Definition: Bounds.hpp:252
Definition: Bounds.hpp:39
bool SetBounds(std::size_t index, double lower_bound, double upper_bound)
Definition: Bounds.cpp:99