Home | Develop | Download | Contact
pdsiir.h
1 /*
2  * pdsiir.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 
37 #ifndef __PDSIIR_H__
38 #define __PDSIIR_H__
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #include <pds/pdsdfglobal.h>
46 #include <pds/pdsvector.h>
47 
48 #include <stdio.h>
49 
50 #ifndef TRUE
51  #define TRUE 1
52 #endif
53 
54 #ifndef FALSE
55  #define FALSE 0
56 #endif
57 
86 typedef struct
87 {
89  PdsVector *a;
93  PdsVector *b;
97  PdsVector *t;
98 }PdsIir;
99 
100 
113 PdsIir *pds_iir_new(const PdsVector *hnum,const PdsVector *hden);
114 
115 
127 
128 
140 int pds_iir_evaluate_vector(PdsIir *IIR,const PdsVector *x,PdsVector *y);
141 
142 
149 void pds_iir_free(PdsIir *IIR);
150 
151 
158 void pds_iir_destroy(PdsIir **IIR);
159 
160 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #endif /* __PDSIIR_H__ */
170 
void pds_iir_destroy(PdsIir **IIR)
Libera el filtro de tipo PdsIir. y carga la variable con NULL.
PdsDfNatural P
Definition: pdsiir.h:95
int pds_iir_evaluate_value(PdsIir *IIR, PdsDfReal x, PdsDfReal *y)
Evalua el filtro IIR con el valor de entrada x, el resultado es cargado en y.
PdsDfNatural Q
Definition: pdsiir.h:91
void pds_iir_free(PdsIir *IIR)
Libera el filtro de tipo PdsIir.
int pds_iir_evaluate_vector(PdsIir *IIR, const PdsVector *x, PdsVector *y)
Evalua el filtro IIR con el vector de entrada x, el resultado es cargado en el vector y...
unsigned int PdsDfNatural
Definition: pdsdfglobal.h:47
PdsVector * b
Definition: pdsiir.h:93
Una estructura tipo PdsIir .
Definition: pdsiir.h:86
PdsVector * a
Definition: pdsiir.h:89
PdsVector * t
Definition: pdsiir.h:97
float PdsDfReal
Definition: pdsdfglobal.h:42
PdsIir * pds_iir_new(const PdsVector *hnum, const PdsVector *hden)
Crea un filtro IIR con parametros hnum y hden.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed