亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? realdft2.c

?? ICETEK-C6711-A開發(fā)板所的模塊fft程序
?? C
字號(hào):
/**************************************************************************************
 FILE
 	realdft2.c - C source for an example inplementation of the DFT/IDFT
	of two N-point real sequences using one N-point complex DFT/IDFT.
 
 **************************************************************************************

 DESCRIPTION
 	This program is an example implementation of an efficent way of computing
	the DFT/IDFT of two real-valued sequences.

 	Assume we have two real-valued sequneces of length N - x1[n] abd x2[n].  The 
	DFT of x1[n] and x2[n] can be computed with one complex-valued DFT of length
	N, as shown above, by following this algorithm.

	1.  Form the complex-valued sequence x[n] from x1[n] and x2[n]
	      
		xr[n] = x1[n]  and   xi[n] = x2[n],   0,1, ..., N-1

	Note, if the sequences x1[n] and x2[n] are coming from another algorithm 
	or a data aquisition driver, this step may be eliminated if these put the
	data in the complex-valued format correctly. 

	2.  Compute X[k] = DFT{x[n]}

	This can be the direct form DFT algorithm, or an FFT algorithm.  If using an
	FFT lgorithm, make sure the output is in normal order - bitereversal is 
	performed.

	3.  Compute the following equations to get the DFTs of x1[n] and x2[n].

          	X1r[0] = Xr[0]
		X1i[0] = 0

		X2r[0] = Xi[0]
		X2i[0] = 0

		X1r[N/2] = Xr[N/2]
		X1i[N/2] = 0
		  
		X2r[N/2] = Xi[N/2]
		X2i[N/2] = 0
		  
		for k = 1,2,3, ...., N/2-1
		       	X1r[k] = (Xr[k] + Xr[N-k])/2        
		       	X1i[k] = (Xi[k] - Xi[N-k])/2
			X1r[N-k] = X1r[k]
			X1i[N-k] = X1i[k]

			X2r[k] = (Xi[k] + Xi[N-k])/2 
			X2i[k] = (Xr[N-k] - Xr[k])/2
			X2r[N-k] = X2r[k]
			X2i[N-k] = X2i[k]


	4. Form X[k] from X1[k] and X2[k]
	   
	   	for k = 0,1, ..., N-1		
			Xr[k] = X1r[k] - X2i[k]
			Xi[k] = X1i[k] + X2r[k]

	5.  Compute x[n] = IDFT{X[k]}

	This can be the direct form IDFT algorithm, or an IFFT algorithm.  If using 
	an IFFT	algorithm, make sure the output is in normal order - bitereversal is
	performed

	  	  	      
	
**************************************************************************************/	



#include <math.h>	/* include the C RTS math library		*/
#include "params2.h"	/* include file with parameters  		*/
#include "params.h"	/* include file with parameters  		*/


extern short x1[];
extern short x2[];

void dft(int, COMPLEX *);
extern void split2(int, COMPLEX *, COMPLEX *, COMPLEX *);


main()
{
	int	n, k;
	
	COMPLEX X1[NUMDATA];		/* array of real-valued DFT output sequence, X1(k) */	
	COMPLEX X2[NUMDATA];		/* array of real-valued DFT output sequence, X2(k) */
	COMPLEX x[NUMPOINTS+1];		/* array of complex DFT data, X(k)                 */
	
	

/* Forward DFT */

/* From the two N-point real sequnces, x1(n) and x2(n), form the N-point complex 
   sequence, x(n) = x1(n) + jx2(n) */

	for (n=0; n<NUMDATA; n++)
	{
		x[n].real = x1[n];
		x[n].imag = x2[n];
	}
	

/* Compute the DFT of x(n), X(k) = DFT{x(n)}.  Note, the DFT can be any
   DFT implementation such as FFTs. */

	dft(NUMPOINTS, x);

/* Because of the periodicitty property of the DFT, we know that X(N+k)=X(k). */

	x[NUMPOINTS].real = x[0].real;
 	x[NUMPOINTS].imag = x[0].imag;


/* The split function performs the additional computations required to get
   X1(k) and X2(k) from X(k). */

	split2(NUMPOINTS, x, X1, X2);


/* Inverse DFT - We now want to get back x1(n) and x2(n) from X1(k) and X2(k) using one
   complex DFT */


/* Recall that x(n) = x1(n) + jx2(n).  Since the DFT operator is linear,
   X(k) = X1(k) + jX2(k).  Thus we can express X(k) in terms of X1(k) and X2(k). */

	for (k=0; k<NUMPOINTS; k++)
	{
		x[k].real = X1[k].real - X2[k].imag;
		x[k].imag = X1[k].imag + X2[k].real;	
 	}

/* Take the inverse DFT of X(k) to get x(n).  Note the inverse DFT could be any
   IDFT implementation, such as an IFFT. */

/* The inverse DFT can be calculated by using the foward DFT algorithm directly
   by complex conjugation - x(n) = (1/N)(DFT{X*(k)})*, where * is the complex conjugate
   operator.  */

/* Compute the complex conjugate of X(k). */

	for (k=0; k<NUMPOINTS; k++)
	{
		x[k].imag = -x[k].imag;	
		
 	}

/* Compute the DFT of X*(k). */

	dft(NUMPOINTS, x);

/* Complex conjugate the output of the DFT and divide by N to get x(n). */

	for (n=0; n<NUMPOINTS; n++)
	{
		x[n].real = x[n].real/16;
		x[n].imag = (-x[n].imag)/16;	
	}

/* x1(n) is the real part of x(n), and x2(n) is the imaginary part of x(n). */

	for (n=0; n<NUMDATA; n++)
	{
		x1[n] = x[n].real;
		x2[n] = x[n].imag;
	}

	return(0);

 }










?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合丝袜美腿| a级精品国产片在线观看| 亚洲va韩国va欧美va| 亚洲另类一区二区| 亚洲日本一区二区| 亚洲精品日日夜夜| 亚洲精品视频一区| 亚洲成人av电影| 午夜私人影院久久久久| 视频一区二区三区入口| 蜜臀久久99精品久久久画质超高清 | 国产日产欧美一区二区视频| 国产午夜精品理论片a级大结局| 久久久久9999亚洲精品| 国产精品系列在线| 一区在线观看视频| 一个色在线综合| 亚洲成a人片在线观看中文| 午夜久久电影网| 美日韩一区二区三区| 精品制服美女丁香| 成人晚上爱看视频| 91麻豆福利精品推荐| 欧美亚洲日本一区| 日韩一区二区在线看| 久久综合色之久久综合| 国产精品全国免费观看高清| 亚洲三级电影网站| 亚洲成人精品一区二区| 美女高潮久久久| 高清不卡一区二区在线| 91色九色蝌蚪| 日韩一区二区三区高清免费看看| 久久综合久久鬼色中文字| 国产欧美日韩另类一区| 亚洲黄色小说网站| 美女网站色91| 99天天综合性| 欧美一级午夜免费电影| 日本一区二区高清| 亚洲r级在线视频| 狠狠色丁香久久婷婷综| 色欲综合视频天天天| 欧美一区二区三区影视| 国产欧美日韩精品一区| 亚洲国产精品久久久久秋霞影院 | 色综合久久久久| 欧美一区二区网站| 国产精品另类一区| 日韩国产欧美一区二区三区| 成人午夜视频网站| 欧美精品在线一区二区三区| 国产婷婷一区二区| 午夜精品一区二区三区电影天堂| 国产一区二区三区日韩| 欧美在线三级电影| 26uuu久久天堂性欧美| 亚洲韩国精品一区| 国产激情精品久久久第一区二区 | 亚洲日本va午夜在线电影| 免费人成在线不卡| 色综合一区二区| 精品sm捆绑视频| 亚欧色一区w666天堂| 成人av综合一区| 亚洲精品一区二区三区影院| 夜夜爽夜夜爽精品视频| 国产91精品免费| 欧美成人性福生活免费看| 亚洲欧美一区二区在线观看| 久久66热re国产| 欧美另类变人与禽xxxxx| 国产精品久久福利| 国产一区二区影院| 欧美精品国产精品| 亚洲黄网站在线观看| 成人听书哪个软件好| 精品国产伦一区二区三区观看体验 | 日韩中文字幕1| 色欧美片视频在线观看| 国产精品美女久久福利网站| 国产一区在线观看麻豆| 91精品国产一区二区三区蜜臀| 伊人开心综合网| 97久久超碰国产精品电影| 久久久久国产精品麻豆ai换脸| 三级久久三级久久| 在线观看www91| 亚洲美女在线一区| 99re视频精品| 国产精品动漫网站| 国产成人av资源| 久久亚洲综合色一区二区三区| 免费一级欧美片在线观看| 在线不卡的av| 免费人成精品欧美精品| 69堂成人精品免费视频| 亚洲成av人综合在线观看| 欧美视频一区二区在线观看| 亚洲精品国产a久久久久久| 91免费版在线| 一区二区三区在线观看国产| 在线免费观看成人短视频| 亚洲精品自拍动漫在线| 91丝袜美腿高跟国产极品老师| 国产精品嫩草99a| 成人免费视频免费观看| 国产精品亲子乱子伦xxxx裸| 丁香六月综合激情| 久久精品国产精品青草| 日韩欧美高清一区| 国产做a爰片久久毛片| 国产精品国产a级| 4438x亚洲最大成人网| 日韩在线卡一卡二| 欧美国产综合一区二区| 6080日韩午夜伦伦午夜伦| 亚洲乱码国产乱码精品精小说| 国产成人在线色| 亚洲欧洲韩国日本视频| 99久久伊人精品| 亚洲综合激情小说| 欧美年轻男男videosbes| 日本成人在线看| 久久久久久久久久美女| 成人av网址在线| 亚洲精品国产一区二区精华液| 欧美日韩免费一区二区三区视频| 日本网站在线观看一区二区三区| 精品国产自在久精品国产| 国产99久久精品| 夜夜精品浪潮av一区二区三区| 欧美日韩精品一区二区| 久久99久久99精品免视看婷婷| 久久精品亚洲乱码伦伦中文| 一本一道波多野结衣一区二区| 天天免费综合色| 久久噜噜亚洲综合| 91无套直看片红桃| 日韩精品电影在线| 国产精品无圣光一区二区| 在线观看www91| 国产乱码精品一区二区三| 亚洲欧美日韩在线| 日韩欧美国产午夜精品| 不卡欧美aaaaa| 视频在线观看一区二区三区| 日本一区二区三区四区| 欧美日韩日本视频| 国产成人在线免费观看| 亚洲电影你懂得| 欧美国产日产图区| 欧美日韩国产高清一区二区三区| 国产成人综合亚洲91猫咪| 亚洲香蕉伊在人在线观| 久久久久久久久一| 欧美日韩精品欧美日韩精品一| 国产精华液一区二区三区| 性久久久久久久久| 国产精品丝袜一区| 日韩欧美在线1卡| 色偷偷88欧美精品久久久| 久久99精品国产.久久久久久| 亚洲免费三区一区二区| 久久久久久久久免费| 正在播放一区二区| 99久久婷婷国产综合精品电影 | 国产欧美一区二区在线| 欧美视频在线观看一区二区| 丁香婷婷综合网| 奇米影视在线99精品| 亚洲美女屁股眼交| 国产精品视频第一区| 91精品国产91综合久久蜜臀| 国产婷婷一区二区| 日韩欧美国产一区二区三区| 91黄色激情网站| 成a人片国产精品| 国产综合久久久久久鬼色| 五月婷婷色综合| 一区二区三区在线观看视频| 国产喷白浆一区二区三区| 日韩欧美一区二区三区在线| 欧美日韩一区二区在线视频| av一区二区三区四区| 国产成人啪午夜精品网站男同| 日韩电影免费在线看| 午夜精品久久久久久久99水蜜桃| 亚洲人xxxx| 亚洲色图制服诱惑| 国产精品乱码一区二三区小蝌蚪| 久久亚洲私人国产精品va媚药| 日韩久久久久久| 欧美一区三区二区| 欧美一区日本一区韩国一区| 欧美老女人在线| 欧美精品第1页| 91精品国产乱| 91精品国产一区二区三区蜜臀 | 欧美色老头old∨ideo|