noise.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
33 #ifndef ACADO_TOOLKIT_NOISE_HPP
34 #define ACADO_TOOLKIT_NOISE_HPP
35 
36 
38 
41 
42 
44 
45 
56 class Noise
57 {
58  //
59  // PUBLIC MEMBER FUNCTIONS:
60  //
61  public:
62 
65  Noise( );
66 
71  Noise( const Noise& rhs
72  );
73 
76  virtual ~Noise( );
77 
82  Noise& operator=( const Noise& rhs
83  );
84 
89  virtual Noise* clone( ) const = 0;
90 
97  virtual Noise* clone( uint idx
98  ) const = 0;
99 
100 
112  virtual returnValue init( uint seed = 0
113  ) = 0;
114 
123  virtual returnValue step( DVector& _w
124  ) = 0;
125 
135  virtual returnValue step( VariablesGrid& _w
136  ) = 0;
137 
138 
143  inline uint getDim( ) const;
144 
150  inline BooleanType isEmpty( ) const;
151 
152 
157  inline BlockStatus getStatus( ) const;
158 
159 
160 
161  //
162  // PROTECTED MEMBER FUNCTIONS:
163  //
164  protected:
165 
172  inline returnValue setStatus( BlockStatus _status
173  );
174 
183  inline double getUniformRandomNumber( double _lowerLimit,
184  double _upperLimit
185  ) const;
186 
187 
188  //
189  // PROTECTED MEMBERS:
190  //
191  protected:
195 };
196 
197 
199 
200 
201 #include <acado/noise/noise.ipp>
202 
203 
207 
208 
209 #endif // ACADO_TOOLKIT_NOISE_HPP
210 
211 
212 /*
213  * end of file
214  */
virtual ~Noise()
Definition: noise.cpp:51
virtual returnValue init(uint seed=0)=0
BooleanType isEmpty() const
BlockStatus
Noise()
Definition: noise.cpp:40
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
virtual returnValue step(DVector &_w)=0
Base class for generating pseudo-random noise for simulating the Process.
Definition: noise.hpp:56
VariablesGrid w
Definition: noise.hpp:194
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
returnValue setStatus(BlockStatus _status)
#define CLOSE_NAMESPACE_ACADO
double getUniformRandomNumber(double _lowerLimit, double _upperLimit) const
BlockStatus getStatus() const
BlockStatus status
Definition: noise.hpp:192
void rhs(const real_t *x, real_t *f)
virtual Noise * clone() const =0
Noise & operator=(const Noise &rhs)
Definition: noise.cpp:56
#define BEGIN_NAMESPACE_ACADO
uint getDim() const


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:54