📄 getfft.3
字号:
.\" Copyright (c) 1987-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)getfft.3 1.10 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH GET_FFT 3\-ESPSsp 18 Apr 1997.SH NAME.nfget_fft \- Compute the fast Fourier transform of a data sequence.get_fftd \- Compute the fast Fourier transform of a (double) data sequence.get_fft_inv \- Compute the inverse fast Fourier transform of a data sequence.get_fftd_inv \- Compute the inverse fast Fourier transform of a (double)data sequence.get_rfft \- Compute the fast Fourier transform of a real data sequence..SH SYNOPSIS.ft Bvoid.brget_fft (data_real, data_imag, log_fft_size).brfloat *data_real, *data_imag;.brint log_fft_size;.spvoid.brget_fftd (data_real, data_imag, log_fft_size).brdouble *data_real, *data_imag;.brint log_fft_size;.spvoid.brget_fft_inv (data_real, data_imag, log_fft_size).brfloat *data_real, *data_imag;.brint log_fft_size;.spvoid.brget_fftd_inv (data_real, data_imag, log_fft_size).brdouble *data_real, *data_imag;.brint log_fft_size;.spvoid.brget_rfft (data_real, data_imag, log_fft_size).brfloat *data_real, *data_imag;.brint log_fft_size;.sp .5.SH DESCRIPTIONThe.I get_fftand.I get_fft_invroutines compute the discrete Fourier transform and the inverse discreteFourier transform, respectively, of a given complex data sequence using thefast Fourier transform algorithm.The input data is supplied through two arrays.Bdata_realand.Bdata_imag.The transform size is.B2**log_fft_size.The FFT output is returned through the same arrays.For transform size N, there are N/2 negative frequencies,and N/2 positive frequencies.The order in which the frequency components are returned is as follows:f(0), f(1),..., f(N/2), f(\-(N/2) + 1), f(\-(N/2) + 2),..., f(\-1).This amounts to N values, with no explicit value for f(\-(N/2)) sincef(N/2) = f(\-(N/2))..PPThe functions.I get_fftdand .I get_fftd_invare the same as .I get_fftand .I get_fftdexcept they pass data through arrays of type double..PPThe function.I get_rfftis an FFT routine similar to.I get_fftexcept that the input data is assumed to be real. If the input array .I data_imagis not filled with zero, .I get_rfftwill exit with an error message. .I get_rfftfunction is two times faster than the.I get_fftroutine..SH BUGSNone.SH SEE ALSO.nf\fIget_arspect\fP(3\-ESPSsp)..fi.SH COMMENTSThe sine and cosine tables needed by the FFT algorithm are computed first timethese routines are called. During the subsequent calls, these tables are recomputed only if the transform sizes are different from the previous calls.This information can be exploited to implement the user's program efficientlyin certain situations..SH REFERENCES[1] A. V. Oppenheim and R. W. Schafer,.IDigital Signal Processing,Prentice-Hall, NJ. 1975..SH AUTHORShankar Narayan
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -