Home | Develop | Download | Contact
pdslpfir.h
1 /*
2  * pdslpfir.h
3  *
4  * Copyright 2011 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 
40 #ifndef __PDSLPLPFIR_H__
41 #define __PDSLPLPFIR_H__
42 
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 #include <pds/pdsdfglobal.h>
49 #include <pds/pdsvector.h>
50 
51 #include <stdio.h>
52 
53 #ifndef TRUE
54  #define TRUE 1
55 #endif
56 
57 #ifndef FALSE
58  #define FALSE 0
59 #endif
60 
95 typedef struct
96 {
98  PdsVector *h;
104  PdsVector *X;
105 }PdsLpFir;
106 
116 PdsLpFir *pds_lpfir_new(const PdsVector *h,PdsDfNatural par);
117 
118 
131 
132 
148 int pds_lpfir_evaluate_vector(PdsLpFir *LPFIR,const PdsVector *x,PdsVector *y);
149 
150 
158 int pds_lpfir_get_order(PdsLpFir *LPFIR);
159 
160 
169 int pds_lpfir_get_length(PdsLpFir *LPFIR);
170 
171 
178 void pds_lpfir_free(PdsLpFir *LPFIR);
179 
180 
187 void pds_lpfir_destroy(PdsLpFir **LPFIR);
188 
193 #ifdef __cplusplus
194 }
195 #endif
196 
197 #endif /* __PDSLPLPFIR_H__ */
198 
int pds_lpfir_evaluate_value(PdsLpFir *LPFIR, PdsDfReal x, PdsDfReal *y)
Evalúa el filtro Linear-Phase FIR con el valor de entrada x, el resultado es cargado en y...
PdsVector * h
Definition: pdslpfir.h:98
Una estructura tipo PdsLpFir .
Definition: pdslpfir.h:95
PdsLpFir * pds_lpfir_new(const PdsVector *h, PdsDfNatural par)
Crea un filtro Linear-Phase FIR con parametros h.
int pds_lpfir_get_length(PdsLpFir *LPFIR)
Esta función retorna la longitud del vector que representa el filtro FIR.
int pds_lpfir_evaluate_vector(PdsLpFir *LPFIR, const PdsVector *x, PdsVector *y)
Evalúa el filtro Linear-Phase FIR con el vector de entrada x, el resultado es cargado en el vector y...
PdsDfNatural N
Definition: pdslpfir.h:102
PdsDfNatural Par
Definition: pdslpfir.h:100
int pds_lpfir_get_order(PdsLpFir *LPFIR)
Esta función retorna o grado del filtro FIR.
unsigned int PdsDfNatural
Definition: pdsdfglobal.h:47
PdsVector * X
Definition: pdslpfir.h:104
void pds_lpfir_free(PdsLpFir *LPFIR)
Libera el filtro de tipo PdsLpFir.
float PdsDfReal
Definition: pdsdfglobal.h:42
void pds_lpfir_destroy(PdsLpFir **LPFIR)
Libera el filtro de tipo PdsLpFir. y carga la variable con NULL.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed