- 博客(48)
- 资源 (36)
- 收藏
- 关注
原创 Mathematica by Example (Fifth Edition).pdf
https://download.csdn.net/download/qq_19347201/10652146下载资源后匆忙回复,评论我写错了。在这里给发布者说声抱歉。
2018-09-10 14:12:13 1000
原创 产生高斯分布的随机变量
for j=1:1:1000 aa(j) = sqrt(-2*log(rand(1,1)))*cos(2*pi*rand(1,1));endbb=randn(1,1000) ;figure(1)histfit(aa);normplot(aa);figure(2) y=aa;x=linspace(min(y),max(y),100) ;yy=hist(y,x) ;yy=
2013-07-23 17:42:06 1839
原创 test markdown-here chrome 插件
插件主页:http://markdown-here.com/我从这里知道的:http://www.oschina.net/question/100267_75314echo "来点雨吧!"
2013-06-28 12:21:39 2457
转载 Dillinger 性感无比的在线markdown编辑器
http://dillinger.io/DillingerDillinger is a cloud-enabled HTML5 Markdown editor.Type some Markdown text in the left windowSee the HTML in the rightMagicMarkdown is a lightweight markup lan
2013-05-29 10:43:22 1773
原创 3GPP标准的交织
参考文献 : ts_136212v110100p.pdffunction gen_out = interleaver_3GPP2( N )table = [ 40 3 10 48 7 12 56 19 42
2013-04-26 16:28:13 2528 1
转载 viterbi译码(2)
function decoded_seq=vit_decoder(G,K,detected,opmode,hard_or_soft)% performs the Viterbi algorithm on detected to get the decoded_seq% G: N x LK Generator polynomial matrix% K: Number of encoder in
2013-04-26 16:18:27 1797
转载 SOVA的实现(3)
function L_A = sova(Ly,G,Lu,ind_dec) % Copyright: Yufei Wu, 1998, MPRG lab, Virginia Tech for academic use% This implements Soft Output Viterbi Algorithm in trace back mode % Input: Ly : Scaled
2013-04-26 16:16:07 1928
转载 SOVA的实现(2)
function L_all = sova(rec_s, g, L_a, ind_dec) % This function implememts Soft Output Viterbi Algorithm in trace back mode % Input: % rec_s: scaled received bits. rec_s(k) = 0.5 * L_c(k) * y(k
2013-04-25 09:45:52 1425
转载 RSC编码代码
output1 = zeros(1,L_total); %preallocate for speedinput = [x zeros(1,m)];state1 = zeros(1,m);for i=1:L_info %g=[1 0 1 1;1 1 0 1]; m=3 in1 = xor(rem(g(1,2:end)*state1',2),input(i)); %mode 2 p
2013-04-24 09:44:08 8129
转载 S0VA的实现
trl = poly2trellis( 3, [7 5], 7 ); win = 5; len = 100; inp = round(rand( 1, len ) ); enc = convenc( inp, trl ); msg = 2*enc - 1; msg = msg + 0.1*randn( 1, length(msg) ); llr = zeros( 1
2013-04-23 17:13:06 1860
原创 递归系统卷积码的状态转移
令 生成多项式为:G(7,5)=[1 1 1;1 0 1] 注意是系统码 第一种方法:a= poly2trellis(3, [7 5],7);>> a.nextStatesans = 0 2 2 0 3 1 1 3第二种方法:function [next_out, next_
2013-04-23 16:44:58 6711
转载 JSON解析-android平台4
package org.lxh.demo;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.PrintStream;import java.util.ArrayList;import java.util.Date;import
2013-04-21 21:36:03 1152
转载 JSON解析-android平台3
package org.lxh.demo;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.PrintStream;import java.util.ArrayList;import java.util.Date;import
2013-04-21 21:11:35 939
转载 MATLAB 与 C 语言混合编程接口:MEX 函数最简单示例之一
原文:http://dannyli.net/2010/06/matlab-mex-simplest-example#include "mex.h"double add(double x, double y) { return x + y;}void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *pr
2013-04-18 11:05:46 1585
原创 用C语言实现s随机交织(修改版)
#include #include #include #include#include int mysort(int N,int s, int *a);void random(int a[], int n) ;int main(){ const int N = 1024 ; const int loopMax = N/2 ; const int s = floor(s
2013-04-17 16:02:40 1760 5
原创 用C语言实现s随机交织
#include #include #include #include#include #define MAX 10int mysort(int N,int s, int *a);void random(int a[], int n) ;int main(){ const int N = 100 ;//先随机打乱一个数组 const int loopMax = 20
2013-04-16 23:50:38 2468
转载 随机打乱一个数组
原文:http://www.nowamagic.net/algorithm/algorithm_RandomTheElementsInArray.php这个算法其实简单,首先从所有元素中随机选取一个与第一个元素进行交换,然后在第二个之后选择一个元素与第二个交换,直到最后一个元素。这样能确保每个元素在每个位置的概率都是1/n。代码如下:#include #include #i
2013-04-16 10:23:46 5224
原创 利用 s-random interleaver得到1024个数字排列
关于原理,可以参考我的另一篇文章:http://blog.csdn.net/bjq1016/article/details/8795666L_total = 1024 ;s=fix(sqrt(L_total/2)) ;alpha = gen_alpha(L_total,s) ;function alpha = gen_alpha(N,s)% disp('genarate alpha=
2013-04-13 20:35:30 1438
原创 s-random随机交织器程序
算法原理:turbo码的S交织,要求生成的序列中的每一个数字要与前面的数字距离大于S。S的取值应接近于 根号(N/2),越接近越好。一般采用冒泡法实现。具体请看参考文献吧。参考文献:A Low Complexity Algorithm for Generating TurboTurbo码S随机交织器的实现我是用matlab实现的。代码写的不好,请见谅。C语言实现
2013-04-12 23:55:43 3941 2
转载 选择排序
void datasort(int score [],int n){ int k,i,j,temp; k=i; for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(score[j]>score[k]) k=j; } if(k!=i) { temp=score[k]; score[k]=score[i];
2012-04-23 19:32:05 901
原创 2012年4月11日OFDM学习笔记
1.码元符号越短,码元速率越大,由于ISI产生的信号恶化越严重后果。2.单载波传输高速率数据的局限:奈奎斯特准则指出,在单载波系统要想获得更高的速率,需要更宽的带宽。符号速率增加,信号带宽也会增加。当信号带宽超过无线信道的相关带宽,由于多径衰落,产生了ISI。这样,需要使用均衡器来解决由于多径衰落信道带来的ISI。而且,对于宽带业务,随着数据速率的提高,均衡器的复杂度也提高。另一个
2012-04-11 11:45:05 1028
转载 数组冒泡排序
#include #define SIZE 10void main(){ int a[]={2,6,15,45,1,456,7,8,9,10}; int pass ; int i ; int hold ; printf("Data items in original order \n"); for( i =0; i<SIZE ;i++) { printf("%4d",a[i
2012-04-09 11:01:51 735
转载 汉诺塔
递归:1.借助第三个木桩,将n-1个圆盘从第一个木桩移动到第二个木桩2.将最后一个圆盘(即最大的圆盘)从第一个木桩移动到第三个木桩3.借助第一个木桩,将n-1个圆盘从第二个木桩移动到第三个木桩#includeusing namespace std;void move(char one,char anoth){ cout<<one<<"移动到"<<anoth<<end
2012-04-09 10:28:47 3126
转载 求最大公约数
#include int gcd( int x, int y ); /* function prototype */int main(){ int j; /* loop counter */ int a; /* first number */ int b; /* second number */ /* loop for 5 pairs of inputs */
2012-04-09 10:13:25 936
转载 数字倒序输出
#include int reverseDigits( int n );int main(){ int number; /* input number */ printf( "Enter a number between 1 and 9999: " ); scanf( "%d", &number ); /* find number with digits r
2012-04-09 10:10:27 3381
转载 十进制转二进制
/* binbit.c -- using bit operations to display binary */#include char * itobs(int, char *);void show_bstr(const char *);int main(void){ char bin_str[8 * sizeof(int) + 1]; int number;
2012-03-29 19:37:47 837
转载 变量的作用域、链接和存储时期
自动变量具有代码块作用域、空连接和自动存储时期。它们是局部的,为定义它们的代码块(通常是一个函数)所私有。寄存器变量与自动变量具有相同的属性,但编译器可能使用速度更快的内存或寄存器来存储它们。无法获取一个寄存器变量的地址。具有静态存储时期的变量可能具有外部链接、内部链接或空连接。当变量在文件的所有函数之外声明时,它是一个具有文件作用域的外部变量,具有外部链接和静态存储时期。如果在这样的声明中再
2012-03-27 14:06:26 723
转载 多维数组和指针(二)
/* zippo2.c -- zippo info via a pointer variable */#include int main(void){ int zippo[4][2] = { {2,4}, {6,8}, {1,3}, {5, 7} }; int (*pz)[2]; pz = zippo; printf(" pz = %p,
2012-03-22 19:53:53 672
转载 多维数组和指针(一)
/* zippo1.c -- zippo info */#include int main(void){ int zippo[4][2] = { {2,4}, {6,8}, {1,3}, {5, 7} }; printf(" zippo = %p, zippo + 1 = %p\n", zippo, zipp
2012-03-22 19:53:26 666
转载 二维数组 降水量的计算
/* rain.c -- finds yearly totals, yearly average, and monthly average for several years of rainfall data */#include #define MONTHS 12 // number of months in a year#define YEARS
2012-03-22 09:55:16 1096
转载 递归实现十进制转二进制
/* binary.c -- prints integer in binary form */#include void to_binary(unsigned long n);int main(void){ unsigned long number; printf("Enter an integer (q to quit):\n"); while (scanf("
2012-03-21 20:43:18 1818
转载 用循环和递归分别计算阶乘
// factor.c -- uses loops and recursion to calculate factorials#include long fact(int n);long rfact(int n);int main(void){ int num; printf("This program calculates factorials.\n"); p
2012-03-21 20:27:44 1415
转载 递归函数
/* recur.c -- recursion illustration */#include void up_and_down(int);int main(void){ up_and_down(1); return 0;}void up_and_down(int n){ printf("Level %d: n location %p\n", n, &n)
2012-03-21 20:20:13 653
转载 《c.primer.plus 5th 》 P208页 菜单浏览
/* menuette.c -- menu techniques */#include char get_choice(void);char get_first(void);int get_int(void);void count(void);int main(void){ int choice; void count(void); while ( (cho
2012-03-21 19:51:12 722
转载 求一个范围内的所有整数的平方和
#include // validate that input is an integerint get_int(void);// validate that range limits are validbool bad_limits(int begin, int end, int low, int high);// calculate the sum of the squares of
2012-03-21 16:10:14 1614
转载 向上取整
#includeint main(){ int a,b; scanf("%d %d",&a,&b); printf("%d",(a+b-1)/b); }#include int main(void){ int a = 0,b = 0,c; scanf("%d %d", &a, &b); c=a/b; if(a%b)
2012-03-21 11:23:06 756
转载 统计空格数目
#include #include using namespace std;int main(){ int Upper=0; string SenTence; cout<<"请输入字符: "<<endl; getline(cin, SenTence, '\n'); for (int i=1;i<SenTence.length();i++) { if (isspace(
2012-03-21 11:00:29 894
转载 统计一段文字的单词数、字符数和行数
#include #include#define STOP '|'int main(){ char c; char prev; long n_chars=0L; int n_lines=0; int n_words=0; int p_lines=0; bool inword=false; printf("Enter text to be analyzed(| to term
2012-03-21 10:54:23 1921
google-gson-2.2.4-release.zip
2014-12-04
Algorithms for Communications Systems and their Applications.2003
2013-04-26
A Low Complexity Algorithm for Generating Turbo.pdf
2013-04-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人