谢谢之前那位朋友提示,之前不完全,现在补充了遗漏的!要做Turbo,感觉是绕不开Dr.wuyufei的数学架构的,我在里面详细注释了。
本文作为学习用,很具有参考价值!本文在结果中详细列出了每次迭代的误码率,迭代次数可调,结果运行时间较长,这个很正常。
译码部分的log-map算法调通了,sova有代码,并没有调,下载的朋友们需要注意了!%**************Dr.wuyufei的典型Turbo系统主函数********************************%Thisscriptsimulatestheclassicalturboencoding-decodingsystem.%Itsimulatesparallelconcatenatedconvolutionalcodes.%Twocomponentrate1/2RSC(RecursiveSystematicConvolutional)componentencodersareassumed.%%Firstencoderisterminatedwithtailsbits.(Info+tail)bitsarescrambledandpassedto%thesecondencoder,whilesecondencoderisleftopenwithouttailbitsofitself.%%Randominformationbitsaremodulatedinto+1/-1,andtransmittedthroughaAWGNchannel.%Interleaversarerandomlygeneratedforeachframe.%Whileit'sUNECESSARYinourfirstversion!%%Log-MAPalgorithmwithoutquantizationorapproximationisused.%Bymakinguseofln(e^x+e^y)=max(x,y)+ln(1+e^(-abs(x-y))),%theLog-MAPcanbesimplifiedwithalook-uptableforthecorrectionfunction.%Ifuseapproximationln(e^x+e^y)=max(x,y),itbecomesMAX-Log-MAP.
1