Home | Develop | Download | Contact
Fir.hpp
1 /*
2  * Fir.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_FIR_HPP__
33 #define __PDS_FIR_HPP__
34 
35 #include <string>
36 #include <vector>
37 #include <Pds/Ra>
38 
48 namespace Pds{
49 
57 class Fir
58 {
59 
60 private:
62  unsigned int M;
63 
66  double *H;
67 
70  double *X;
71 
72 
73 public:
74 
85  Fir(void);
86 
87 
95  Fir(const Pds::Vector &H);
96 
97 
98  ~Fir();
99 
104 public:
105 
118  double Evaluate(double x);
119 
127  Pds::Vector Evaluate(const Pds::Vector &X);
132 public:
133 
145  bool IsEmpty(void) const;
146 
151 public:
152 
163  void Print(std::string str="") const;
164 
170 }; // Class Fir
171 
172 } // namespace Pds
173 
174 
179 #endif
180 
La clase tipo Pds::Fir . Esta clase genera un objeto con dos parametros Nlin y Ncol....
Definition: Fir.hpp:58
double * H
Definition: Fir.hpp:66
double * X
Definition: Fir.hpp:70
unsigned int M
Definition: Fir.hpp:62
void Print(std::string str="") const
Muestra en pantalla el contenido de Pds::Fir, elementos separados por tabulador.
Fir(void)
Crea un objeto de tipo Pds::Fir.
double Evaluate(double x)
Evalua el filtro FIR.
bool IsEmpty(void) const
Verifica si el bloque del algoritmo está inicializado es decir k=0 y N=0.
Fir(const Pds::Vector &H)
Crea un filtro fir de orden N.
Pds::Vector Evaluate(const Pds::Vector &X)
Evalua cada elemento de um vector num filtro FIR.
Nombre de espacion para PDS (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed