Home | Develop | Download | Contact
IterationConf.hpp
1 /*
2  * IterationConf.hpp
3  *
4  * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 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 General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
32 #ifndef __PDS_ITERATIONCONF_HPP__
33 #define __PDS_ITERATIONCONF_HPP__
34 
35 #include <string>
36 
47 namespace Pds{
48 
57 {
58 private:
60  double Alpha;
61 
63  double AlphaFactor;
64 
68  bool AlphaSmart;
69 
71  double Lambda;
72 
74  double Gamma;
75 
77  double MinError;
78 
80  unsigned int MaxIter;
81 
82 
83 public:
84 
86  bool Show;
87 
89  double LastError;
90 
92  double LastIter;
93 
119 
120 
122 
128 public:
129 
141  bool SetAlpha(double Alpha);
142 
149  double GetAlpha(void) const;
150 
157  bool GetAlphaSmart(void) const;
158 
166 
173  double GetAlphaFactor(void) const;
174 
182 
189  bool SetLambda(double Lambda);
190 
197  double GetLambda(void) const;
198 
205  bool SetGamma(double Lambda);
206 
213  double GetGamma(void) const;
214 
215 
222  bool SetMinError(double MinError);
223 
230  double GetMinError(void) const;
231 
238  bool SetMaxIter(unsigned int MaxIter);
239 
246  unsigned int GetMaxIter(void) const;
252 public:
253 
265  void Print(std::string str) const;
270 }; // Class IterationConf
271 
272 } // namespace Pds
273 
274 
279 #endif
280 
La clase tipo Pds::IterationConf . Esta clase genera una matriz de Nlin lineas y 1 columna....
unsigned int MaxIter
bool SetLambda(double Lambda)
Coloca el valor lambda.
bool SetAlphaSmart(bool AlphaSmart)
Establece el valor AlphaSmart.
bool SetAlpha(double Alpha)
Coloca el valor alpha.
void Print(std::string str) const
Imprime en pantalla el contenido de la IterationConf después del texto indicado en str.
double GetGamma(void) const
Devuelve el valor gamma.
double GetMinError(void) const
Devuelve el valor MinError.
IterationConf(void)
Crea un objeto vazio de tipo Pds::IterationConf.
double GetAlphaFactor(void) const
Devuelve el valor AlphaFactor.
double GetAlpha(void) const
Devuelve el valor alpha.
bool SetMaxIter(unsigned int MaxIter)
Coloca el valor MaxIter.
double GetLambda(void) const
Devuelve el valor Lambda.
bool SetMinError(double MinError)
Coloca el valor MinError.
bool SetGamma(double Lambda)
Coloca el valor gamma.
unsigned int GetMaxIter(void) const
Devuelve el valor MaxIter.
bool SetAlphaFactor(double AlphaFactor)
Establece el valor AlphaFactor.
bool GetAlphaSmart(void) const
Devuelve el valor AlphaSmart.
Nombre de espacio para Pds (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed