BayesOpt
boundingbox.hpp
Go to the documentation of this file.
1 
2 /*
3 -----------------------------------------------------------------------------
4  Copyright (C) 2011-2015 Ruben Martinez-Cantin <rmcantin@unizar.es>
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Affero General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Affero General Public License for more details.
15 
16  You should have received a copy of the GNU Affero General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -----------------------------------------------------------------------------
19 */
20 #ifndef _BOUNDING_BOX_HPP_
21 #define _BOUNDING_BOX_HPP_
22 
23 // BOOST Libraries
24 #include <boost/numeric/ublas/vector.hpp>
25 #include "ublas_elementwise.hpp"
26 
27 namespace bayesopt {
28 
29  namespace utils {
31  template <class V>
32  class BoundingBox
33  {
34  public:
35  BoundingBox(const V &lbound, const V &ubound):
36  mLowerBound(lbound), mRangeBound(ubound - lbound)
37  {};
38 
39  virtual ~BoundingBox(){};
40 
41  inline V unnormalizeVector( const V &vin )
42  {
44  }; // unnormalizeVector
45 
46  inline V normalizeVector( const V &vin )
47  {
49  } // normalizeVector
50 
51  protected:
54  };
55 
56  } //namespace utils
57 
58 
59 } //namespace bayesopt
60 
61 #endif
Namespace of the library interface.
Definition: using.dox:1
V mRangeBound
Range (up-low) of the input space.
Definition: boundingbox.hpp:53
V mLowerBound
Lower bound of the input space.
Definition: boundingbox.hpp:52
Elementwise operations for ublas vector/matrix.
v1 ublas_elementwise_prod(const v1 &a, const v2 &b)
Computes the elementwise product of two vectors or matrices.
v1 ublas_elementwise_div(const v1 &a, const v2 &b)
Computes the elementwise division of two vectors or matrices.