Home | Develop | Download | Contact
pdsfirlms.h
1 /*
2  * pdsfirlms.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 __PDSFIRLMS_H__
38 #define __PDSFIRLMS_H__
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #include <pds/pdsdfglobal.h>
46 
47 #include <pds/pdsfir.h>
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 {
94 }PdsFirLms;
95 
96 
108 PdsFirLms *pds_fir_lms_new(PdsDfReal Mhu, PdsRaNatural M);
109 
110 
119 int pds_fir_lms_disable(PdsFirLms *FirLms);
120 
121 
129 int pds_fir_lms_enable(PdsFirLms *FirLms);
130 
131 
140 int pds_fir_lms_set_mhu(PdsFirLms *FirLms,PdsDfReal Mhu);
141 
142 
156 
157 
175 int pds_fir_lms_evaluate_vector(PdsFirLms *FirLms,const PdsVector *d,const PdsVector *x,PdsVector *e,PdsVector *y);
176 
177 
184 void pds_fir_lms_free(PdsFirLms *FirLms);
185 
186 
193 void pds_fir_lms_destroy(PdsFirLms **FirLms);
194 
195 
200 #ifdef __cplusplus
201 }
202 #endif
203 
204 #endif /* __PDSFIRLMS_H__ */
205 
int pds_fir_lms_evaluate_vector(PdsFirLms *FirLms, const PdsVector *d, const PdsVector *x, PdsVector *e, PdsVector *y)
Evalúa el filtro FIR LMS con el vector de entrada x, el resultado es cargado en el vector y...
int pds_fir_lms_evaluate_value(PdsFirLms *FirLms, PdsDfReal d, PdsDfReal x, PdsDfReal *e, PdsDfReal *y)
Evalúa el filtro FIR LMS con el valor de entrada "d" e "x", el resultado es cargado en "e" e "y"...
int pds_fir_lms_enable(PdsFirLms *FirLms)
Habilita la reconfiguración de los pesos h[i] del filtro FIR LMS.
int PdsDfInteger
Definition: pdsdfglobal.h:52
PdsFir * Fir
Definition: pdsfirlms.h:93
PdsDfReal Mhu
Definition: pdsfirlms.h:89
void pds_fir_lms_destroy(PdsFirLms **FirLms)
Libera el filtro de tipo PdsFirLms. y carga la variable con NULL.
PdsFirLms * pds_fir_lms_new(PdsDfReal Mhu, PdsRaNatural M)
Crea un filtro FIR LMS con parametros h[i] del filtro FIR, con un valor inicial de h[i]=1/(1+M)...
Una estructura tipo PdsFir .
Definition: pdsfir.h:77
int pds_fir_lms_set_mhu(PdsFirLms *FirLms, PdsDfReal Mhu)
Coloca el valor Mhu del filtro FIR LMS.
void pds_fir_lms_free(PdsFirLms *FirLms)
Libera el filtro de tipo PdsFirLms.
int pds_fir_lms_disable(PdsFirLms *FirLms)
Deshabilita la reconfiguración de los pesos h[i] del filtro FIR LMS y se mantienen los ultimos pesos ...
float PdsDfReal
Definition: pdsdfglobal.h:42
Una estructura tipo PdsFirLms .
Definition: pdsfirlms.h:86
PdsDfInteger Work
Definition: pdsfirlms.h:91

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed