Home | Develop | Download | Contact
 Todo Estructuras de Datos Funciones Variables 'typedefs' Grupos Páginas
pdsfft.h
1 /*
2  * pdsfft.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 
30 #ifndef __PDSFFT_H__
31 #define __PDSFFT_H__
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 
38 #include <stdio.h>
39 
40 #include <pds/pdsftglobal.h>
41 #include <pds/pdscvector.h>
42 #include <pds/pdsvector.h>
43 
44 #ifndef TRUE
45  #define TRUE 1
46 #endif
47 
48 #ifndef FALSE
49  #define FALSE 0
50 #endif
51 
52 
84 typedef struct
85 {
87  PdsCVector *W;
90 }PdsFft;
91 
92 
94 
111 
112 
114 
132 int pds_fft_evaluate_real(const PdsFft *FFT,PdsCVector *Out,const PdsVector *In);
133 
134 
146 int pds_fft_evaluate_complex(const PdsFft *FFT,PdsCVector *Out,const PdsCVector *In);
147 
148 
150 
163 void pds_fft_free(PdsFft *FFT);
164 
165 
172 void pds_fft_destroy(PdsFft **FFT);
173 
175 
176 
181 #ifdef __cplusplus
182 }
183 #endif
184 
185 #endif /* __PDSFFT_H__ */
186 
unsigned int PdsFtNatural
Definition: pdsftglobal.h:50
int pds_fft_evaluate_real(const PdsFft *FFT, PdsCVector *Out, const PdsVector *In)
Evalua la transformada rapida de fourier a un vetor real. El tamanho del vector Out debe ser igual qu...
PdsFft * pds_fft_new(PdsFtNatural *N)
Crea una estructura de tipo PdsFft, para generar una FFT de N puntos. Si N no es potencia de 2...
PdsCVector * W
Definition: pdsfft.h:87
int pds_fft_evaluate_complex(const PdsFft *FFT, PdsCVector *Out, const PdsCVector *In)
Evalua la transformada rapida de fourier a un vetor complejo. El tamanho del vector Out debe ser igua...
PdsFtNatural N
Definition: pdsfft.h:89
void pds_fft_free(PdsFft *FFT)
Libera una estructura de tipo puntero PdsFft.
Estructura tipo PdsFft. Esta estructura genera una Transformada Rápida de Fourier de N puntos...
Definition: pdsfft.h:84
void pds_fft_destroy(PdsFft **FFT)
Libera una estructura de tipo puntero PdsFft, y carga a la estructura con NULL.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed