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 
46 namespace Pds{
47 
56 {
57 private:
59  double Alpha;
60 
62  double Lambda;
63 
65  double Gamma;
66 
68  double MinError;
69 
71  unsigned int MaxIter;
72 
73 
74 public:
75 
77  bool Show;
78 
80  double LastError;
81 
83  double LastIter;
84 
95 
96 
98 
104 public:
105 
117  bool SetAlpha(double Alpha);
118 
125  double GetAlpha(void) const;
126 
133  bool SetLambda(double Lambda);
134 
141  double GetLambda(void) const;
142 
149  bool SetGamma(double Lambda);
150 
157  double GetGamma(void) const;
158 
159 
166  bool SetMinError(double MinError);
167 
174  double GetMinError(void) const;
175 
182  bool SetMaxIter(unsigned int MaxIter);
183 
190  unsigned int GetMaxIter(void) const;
196 public:
197 
209  void Print(std::string str) const;
214 }; // Class IterationConf
215 
216 } // namespace Pds
217 
218 
223 #endif
224 
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 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. El método IsEmpty() retorna true.
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.
Nombre de espacion para PDS (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed