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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? genrootraisedcosine.cpp

?? 對WCDMA的性能進行了仿真
?? CPP
字號:
#include <math.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include "mex.h"

#define PI 3.14159265358979

void GenRootRaisedCosine(int , int ,unsigned ,double ,double ,double * ,double * ,unsigned );

void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
/**************************************************************************************
* void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
*
* Copyright 2002 The Mobile and Portable Radio Research Group
*
* Gateway function for GenRootRaisedCosine.  Supports that passing of five input parameters
* and two output parameters.  The five input parameters are
*		LBound				Determines the minimum limit of the truncated 
*							impulse response normalized by symbol period
*		UBound				Determines the maximum limit of the truncated 
*							impulse response normalized by symbol period
*		SampleRate			The number of samples per symbol duration
*		RollOff				Rolloff of the Filter.  Must not exceed 1
*		SymbolPeriod		Symbol Duration (in seconds)
*
* The two output parameters are
*		y					Impulse response
*		t					Time index
***************************************************************************************/
{
	int MexLBound,MexUBound,PLength;
	unsigned MexSamplesPerSymbol;
	double MexRollOff,MexSymbolPeriod;
	int mrows,ncols;
	double dbleScale,fraction,integer_portion;
	double *pulse,*TimeIndex;
	const mxArray *tprhs;
	
	
	//Check for the proper number of input and output arguments
	if (nrhs != 5) mexErrMsgTxt("\nExactly FIVE input arguemnts are required!!\n");
	else if (nlhs != 2 ) mexErrMsgTxt("\nExactly TWO output arguements are required!!\n");

	//All Inputs must be scalars
	//Lower Bound
	tprhs = *prhs;
	mrows = mxGetM(tprhs);
	ncols = mxGetN(tprhs);
	if ( !mxIsDouble(tprhs) || mxIsComplex(tprhs) || !(mrows ==1 && ncols ==1))
		mexErrMsgTxt("\nLowerBoundT must be a noncomplex scalar\n");
	MexLBound = (int) mxGetScalar(tprhs);


	//Upper Bound
	tprhs = *(prhs+1);
	mrows = mxGetM(tprhs);
	ncols = mxGetN(tprhs);
	if ( !mxIsDouble(tprhs) || mxIsComplex(tprhs) || !(mrows ==1 && ncols ==1))
		mexErrMsgTxt("\nUpperBoundT must be a noncomplex scalar\n");
	MexUBound = (int) mxGetScalar(tprhs);

	//Samples per Symbol
	tprhs = *(prhs+2);
	mrows = mxGetM(tprhs);
	ncols = mxGetN(tprhs);
	if ( !mxIsDouble(tprhs) || mxIsComplex(tprhs) || !(mrows ==1 && ncols ==1))
		mexErrMsgTxt("\nSamples Per Symbol must be a noncomplex scalar\n");
	dbleScale=mxGetScalar(tprhs);
	fraction=modf(dbleScale,&integer_portion);
	if (integer_portion <= 0.0) mexErrMsgTxt("\nMexSamplesPerSymbol must be positive\n");
	MexSamplesPerSymbol = (unsigned) integer_portion;
	if (fraction != 0) mexErrMsgTxt("\nMexSamplesPerSymbol must be an integer\n");

	//RollOff
	tprhs = *(prhs+3);
	mrows = mxGetM(tprhs);
	ncols = mxGetN(tprhs);
	if ( !mxIsDouble(tprhs) || mxIsComplex(tprhs) || !(mrows ==1 && ncols ==1))
		mexErrMsgTxt("\nSamples Per Symbol must be a noncomplex scalar\n");
	MexRollOff=mxGetScalar(tprhs);
	if ((MexRollOff <= 0.0) || (MexRollOff > 1.0)) mexErrMsgTxt("\nMexRollOff must be between 0 and 1\n");

	//Symbol Period
	tprhs = *(prhs+4);
	mrows = mxGetM(tprhs);
	ncols = mxGetN(tprhs);
	if ( !mxIsDouble(tprhs) || mxIsComplex(tprhs) || !(mrows ==1 && ncols ==1))
		mexErrMsgTxt("\nSamples Per Symbol must be a noncomplex scalar\n");
	MexSymbolPeriod=mxGetScalar(tprhs);
	if (MexRollOff <= 0.0)  mexErrMsgTxt("\nSample Period must be positive\n");

	PLength = (MexUBound - MexLBound) * (int) MexSamplesPerSymbol + 1;
	*plhs = mxCreateDoubleMatrix( PLength,1,mxREAL);
	*(plhs+1) = mxCreateDoubleMatrix( PLength,1,mxREAL);
	pulse = mxGetPr(*plhs);
	TimeIndex = mxGetPr(*(plhs+1));
	//Call Root Raised Cosine function
	GenRootRaisedCosine(MexLBound, MexUBound,MexSamplesPerSymbol,MexRollOff, MexSymbolPeriod,pulse,TimeIndex,PLength);
	

}





void GenRootRaisedCosine(int LowerBoundT, int UpperBoundT,unsigned SamplesPerSymbol,double RollOff,double SymbolPeriod,double *filter,double *t_index,unsigned NumSamples)
/******************************************************************************************
/ void GenRootRaisedCosine(int LowerBoundT, int UpperBoundT,unsigned SamplesPerSymbol,
/      double RollOff,double SymbolPeriod,double *filter,double *t_index,unsigned NumSamples)
/
/ Copyright 2002 The Mobile and Portable Radio Research Group
/
/
/ GenRootRaisedCosine produces the impulse response of a root raised cosine filter and
/ stores it in an array.  Note that the impulse of a root raised cosine filter ranges
/ from -infinity to infinity.  It is therefore necessary to truncated from LowerBoundT to
/ UperBountT.
/
/ Parameters
/   Input
/      LowerBoundT        Determines the minimum limit of the truncated imulse response
/                         normalized by symbol period
/      UpperBoundT        Determines the maximum limit of the truncated imulse response
/                         normalized by symbol period
/      SamplesPerSymbol   The number of samples per symbol duration
/      RollOff            Rolloff of the Filter.  Must not exceed 1
/      SymbolPeriod       Symbol Duration (in seconds)
/ 
/   Output
/      *filter            Pointer ot an array that contains the filter impulse response
/      *t_index           Pointer ot an array that contains the associated time.
/      NumSamples         Length of the output array
/
/******************************************************************************************/
{
	double *filter_temp,*t_temp;	//Temporary pointers for *filter and *t_index
	double cos_arg;					//Stores arguement to cosine funciton
	double sin_arg;					//Stores arguement to sine function
	double bottom_arg;				//Stores non-trivial term in the denominator
	double coeff;					//Stores the normalizing coefficient
	double SampleDuration;			//Stores the sample period
	int k;							//Counter

	//Determine Array length
	NumSamples = (UpperBoundT-LowerBoundT)*SamplesPerSymbol+1;

	
	//Compute impulse response
	SampleDuration = SymbolPeriod/SamplesPerSymbol;
	coeff = (4.0 * RollOff * sqrt(SampleDuration)) / (PI * sqrt(SymbolPeriod));

    t_temp=t_index;
	filter_temp=filter;
	for (k=0; k< (int) NumSamples;k++)
	{
		//Compute time index
		*t_temp=(LowerBoundT * SymbolPeriod) + (k * SampleDuration);
		if (*t_temp == double (0.0)) *t_temp = 1e-20;
		cos_arg = (1 + RollOff) * (PI * *t_temp / SymbolPeriod);
		sin_arg = (1 - RollOff) * (PI * *t_temp / SymbolPeriod);
		bottom_arg = (double) 4.0 * RollOff * *t_temp / SymbolPeriod;
		t_temp++;
		*filter_temp++ = coeff * (cos(cos_arg) + (sin(sin_arg) / bottom_arg)) / (1 - (bottom_arg * bottom_arg));
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级一区二区| 成人久久视频在线观看| 自拍偷拍国产精品| 欧美精品一区二区三| 欧美午夜精品一区二区蜜桃| 五月天一区二区三区| 成人免费在线播放视频| 久久久精品2019中文字幕之3| 91精品久久久久久蜜臀| 99精品久久久久久| 成人av免费网站| 97国产一区二区| 大陆成人av片| 波多野结衣在线一区| 国产一区欧美二区| 久久99精品国产.久久久久久| 午夜精品一区二区三区免费视频 | 亚洲免费大片在线观看| 国产亲近乱来精品视频| 久久一区二区三区国产精品| 日韩精品中文字幕一区二区三区| 欧美性色欧美a在线播放| 色综合久久天天| 在线亚洲人成电影网站色www| 成人激情免费电影网址| 91尤物视频在线观看| 91久久线看在观草草青青| 成人激情文学综合网| 成人黄色国产精品网站大全在线免费观看| 国产一区久久久| 日韩一区精品视频| 免费看黄色91| 国产成人av影院| 99这里只有精品| 成人综合在线网站| 色哟哟国产精品免费观看| 欧美专区日韩专区| 91精品国产综合久久久久久久 | 91视频xxxx| 欧美性猛交xxxx黑人交| 欧美一区二区三区视频免费| 日韩午夜精品视频| 欧美韩日一区二区三区| 亚洲国产成人va在线观看天堂| 亚洲成人av一区| 国产精品一区在线观看乱码| 色综合亚洲欧洲| 亚洲欧美另类久久久精品2019| 亚洲黄色录像片| 国产在线视频一区二区三区| 成人动漫视频在线| 欧美精品久久99久久在免费线| 亚洲精品一区二区三区四区高清 | 久久综合av免费| 国产精品久久久久久久久免费樱桃| 亚洲一区在线观看网站| 九九精品视频在线看| www.日韩av| 日韩精品自拍偷拍| 亚洲另类在线视频| 国产精品一二二区| 欧美va日韩va| 午夜精品福利视频网站| 国产成人精品在线看| 欧美日韩成人综合在线一区二区| 国产欧美日韩在线观看| 日韩中文字幕亚洲一区二区va在线| 国产精品系列在线播放| 欧美久久高跟鞋激| 亚洲欧洲中文日韩久久av乱码| caoporn国产一区二区| 国产日产欧产精品推荐色| 国产剧情一区在线| 精品美女在线观看| 久久精品国产亚洲a| 日韩你懂的在线观看| 日韩高清不卡在线| 日韩你懂的在线播放| 久久草av在线| 国产亚洲一区二区在线观看| 国产精品99久久久| 国产精品美女一区二区在线观看| 丰满少妇久久久久久久| 1024精品合集| 在线免费观看日韩欧美| 五月婷婷久久丁香| 日韩欧美亚洲国产另类| 国产精品一区二区91| 国产欧美一区二区精品性| 99久久婷婷国产精品综合| 亚洲欧美激情小说另类| 在线亚洲高清视频| 日韩av一二三| 久久久久国产精品麻豆| 99精品久久久久久| 爽爽淫人综合网网站| 精品99久久久久久| 成人国产精品免费观看| 亚洲激情成人在线| 欧美大尺度电影在线| 成熟亚洲日本毛茸茸凸凹| 亚洲精品久久嫩草网站秘色| 欧美一级欧美三级| 菠萝蜜视频在线观看一区| 亚洲国产美国国产综合一区二区| 日韩一区二区三区四区五区六区| 韩国理伦片一区二区三区在线播放| 国产欧美日韩精品在线| 91福利国产成人精品照片| 精品在线免费观看| 亚洲婷婷在线视频| 欧美刺激脚交jootjob| 99久久综合狠狠综合久久| 日韩影视精彩在线| 成人免费在线视频| 久久综合色婷婷| 欧美性xxxxxx少妇| 国产精品1区二区.| 日韩精品乱码av一区二区| 中文天堂在线一区| 精品女同一区二区| 欧美亚洲国产一区在线观看网站| 久久99国产精品久久99| 亚洲精品成人少妇| 国产精品视频观看| 精品久久人人做人人爰| 一本久久精品一区二区| 国产在线不卡视频| 午夜视频在线观看一区二区| 中文字幕国产一区| 久久奇米777| 欧美一区二区精美| 欧美日韩一区二区三区免费看| 国产福利精品导航| 韩国成人福利片在线播放| 亚洲成a人v欧美综合天堂下载| 综合久久久久久| 国产精品久久久久精k8| 久久久久久久久久久久电影| 欧美一区二区免费观在线| 欧美日韩高清不卡| 色偷偷成人一区二区三区91| 成人一级片在线观看| 国模一区二区三区白浆| 日产国产高清一区二区三区| 午夜激情综合网| 香蕉久久夜色精品国产使用方法 | 日韩av一区二区三区| 亚洲成人av一区| 天天av天天翘天天综合网| 日韩一区日韩二区| 亚洲欧美一区二区三区久本道91 | 精品综合免费视频观看| 蜜桃一区二区三区在线观看| 天堂成人免费av电影一区| 亚洲一区影音先锋| 五月激情六月综合| 日韩精品1区2区3区| 热久久国产精品| 蜜桃传媒麻豆第一区在线观看| 日韩不卡在线观看日韩不卡视频| 三级久久三级久久| 麻豆一区二区在线| 国产伦精品一区二区三区在线观看| 久久不见久久见中文字幕免费| 国产真实乱对白精彩久久| 处破女av一区二区| 91看片淫黄大片一级在线观看| 一本到一区二区三区| 欧美精品色一区二区三区| 日韩一卡二卡三卡四卡| 日韩视频免费观看高清完整版在线观看| 欧美一区在线视频| 久久综合狠狠综合久久综合88| 日本一区二区三级电影在线观看| 亚洲色图欧洲色图| 五月天精品一区二区三区| 久久国产精品99精品国产| 国产一区二区三区观看| 成人av第一页| 91精品久久久久久蜜臀| 国产亚洲精品aa| 一区二区高清在线| 蜜臂av日日欢夜夜爽一区| 国产不卡一区视频| 欧美人妖巨大在线| 久久久精品国产99久久精品芒果| 亚洲精品视频自拍| 精品一区二区三区视频| 99r国产精品| 精品乱码亚洲一区二区不卡| 中文字幕一区日韩精品欧美| 三级在线观看一区二区| 粉嫩在线一区二区三区视频| 欧美人与z0zoxxxx视频| 中文字幕日韩一区二区| 青青草原综合久久大伊人精品| 成人免费观看男女羞羞视频| 91精品国产乱码久久蜜臀| 国产精品色哟哟|