JakesImptCPP

所属分类:通讯编程
开发工具:C/C++
文件大小:4KB
下载次数:34
上传日期:2007-11-29 16:35:09
上 传 者老马识途奔前方
说明:  无线信道模型的仿真程序,希望对大家有帮助
(Wireless channel model simulation procedures, we hope to help)

文件列表:
JakesImptCPP (0, 2003-03-22)
JakesImptCPP\checkCorrelation.m (1492, 2003-03-21)
JakesImptCPP\GenFading.cpp (2746, 2003-03-23)
JakesImptCPP\GenFading.h (886, 2003-03-20)
JakesImptCPP\mainProg.cpp (946, 2003-03-21)

GenFading.h and GenFading.cpp is the class to generate fading. The interface functions are written to follow COM/ATL style. Initialize([in] int n, [in] double fd); Update([in] int numOfSteps); GetPwrDB([out] double* pDBArray); SetN([in] int n); GetN([out] int* pN); SetFd([in] double fd); GetFd([out] double* pFd); GetMag([out] double* pMagArray); GetComplexEnvelope([out] double* pRealArray, [out] double* pImagArray); Initialize(n, fd) must be called first to specify the number of fading processes n and the normalized fading rate fd. Each time Update(numOfSteps) is called, the complex fading coefficient is updated by going forward numOfSteps. GetPwrDB(double* pDBArray) returns the power attenuation in dB. GetMag(double* pMagArray) returns the absolute magnitude of the complex fading coefficient. GetComplexEnvelope(double* pRealArray, double* pImagArray) retunrs both the real part and imaginary part of the complex fading coefficient. SetN() and GetN() can set and return the number of fading processes. Upon changing n, the fading generator is reset. SetFd() and GetFd() can set and return the normalized fading rate. Changing Fd does not reset the fading generator. mainProg.cpp uses the above class to generate fading and write the output to .dat files. To better fit Bessel function, the number of oscillators/fading processes should be more than 8. checkCorrelation.m is a matlab program to test the spatial and temporal correlation of the generated fading process. Tested on Windows XP with Visual Studio 6.0 Enterprise and Matlab R12 v6.1.

近期下载者

相关文件


收藏者