uniform_noise.hpp
Go to the documentation of this file.
00001 /*
00002  *    This file is part of ACADO Toolkit.
00003  *
00004  *    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
00005  *    Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
00006  *    Milan Vukov, Rien Quirynen, KU Leuven.
00007  *    Developed within the Optimization in Engineering Center (OPTEC)
00008  *    under supervision of Moritz Diehl. All rights reserved.
00009  *
00010  *    ACADO Toolkit is free software; you can redistribute it and/or
00011  *    modify it under the terms of the GNU Lesser General Public
00012  *    License as published by the Free Software Foundation; either
00013  *    version 3 of the License, or (at your option) any later version.
00014  *
00015  *    ACADO Toolkit is distributed in the hope that it will be useful,
00016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *    Lesser General Public License for more details.
00019  *
00020  *    You should have received a copy of the GNU Lesser General Public
00021  *    License along with ACADO Toolkit; if not, write to the Free Software
00022  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  */
00025 
00026 
00033 #ifndef ACADO_TOOLKIT_UNIFORM_NOISE_HPP
00034 #define ACADO_TOOLKIT_UNIFORM_NOISE_HPP
00035 
00036 
00037 #include <acado/noise/noise.hpp>
00038 
00039 
00040 BEGIN_NAMESPACE_ACADO
00041 
00042 
00053 class UniformNoise : public Noise
00054 {
00055         //
00056         //  PUBLIC MEMBER FUNCTIONS:
00057         //
00058         
00059         public:
00060 
00063                 UniformNoise( );
00064 
00072         UniformNoise(   const DVector& _lowerLimit,
00073                                                 const DVector& _upperLimit
00074                                                 );
00075 
00083         UniformNoise(   uint _dim,
00084                                                 double _lowerLimit,
00085                                                 double _upperLimit
00086                                                 );
00087 
00092                 UniformNoise(   const UniformNoise& rhs
00093                                                 );
00094         
00097                 virtual ~UniformNoise( );
00098 
00103                 UniformNoise& operator=(        const UniformNoise& rhs
00104                                                                         );
00105 
00110         virtual UniformNoise* clone( ) const;
00111 
00118         virtual UniformNoise* clone(    uint idx
00119                                                                                 ) const;
00120 
00121 
00131                 returnValue setLimits(  const DVector& _lowerLimit,
00132                                                                 const DVector& _upperLimit
00133                                                                 );
00134 
00143                 returnValue setLimits(  double _lowerLimit,
00144                                                                 double _upperLimit
00145                                                                 );
00146 
00158                 returnValue setLimit(   uint idx,
00159                                                                 double _lowerLimit,
00160                                                                 double _upperLimit
00161                                                                 );
00162 
00163 
00175                 virtual returnValue init(       uint seed = 0
00176                                                                         );
00177 
00178         
00188                 virtual returnValue step(       DVector& _w
00189                                                                         );
00190 
00200                 virtual returnValue step(       VariablesGrid& _w
00201                                                                         );
00202 
00203 
00208                 inline const DVector& getLowerLimit( ) const;
00209 
00214                 inline const DVector& getUpperLimit( ) const;
00215 
00216 
00217 
00218         //
00219         //  PROTECTED MEMBER FUNCTIONS:
00220         //
00221         protected:
00222 
00223 
00224         //
00225         //  PROTECTED MEMBERS:
00226         //
00227         protected:
00228 
00229                 DVector lowerLimit;                             
00230                 DVector upperLimit;                             
00231 };
00232 
00233 
00234 CLOSE_NAMESPACE_ACADO
00235 
00236 
00237 
00238 #include <acado/noise/uniform_noise.ipp>
00239 
00240 
00241 #endif  // ACADO_TOOLKIT_UNIFORM_NOISE_HPP
00242 
00243 
00244 /*
00245  *      end of file
00246  */


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:27