Distribution generator Here is a simple generator which can build some distributions with given properties. Distributions generator (compile with -lm) Typical use might be: ./distributions -u -m 1 -M 10 -n 100 -s 500 Generates a distribution of 100 uniform random numbers between 1 and 10, such that the sum of numbers is 500. ./distributions -p -2.2 -m 1 -M 100 -n 200 -s 500 Idem with 200 numbers between 1 and 100 following a power law with exponent -
标签: generator distributions Distribution simple
上传时间: 2014-01-27
上传用户:sammi
支持4到16bit 的m序列的MATLAB源码。输入寄存器长度M_Len,输出2.^M_Len-1长度的寄存器状态值向量
上传时间: 2013-12-20
上传用户:xymbian
旅行商问题 某售货员要到若干城市去推销商品,已知各城市之间的路程(或旅费)。他要选定一条从驻地出发,经过每个城市一遍,最后回到驻地的路线,使总的路程(或旅费)最小。 例如:给定4个城市{1,2,3,4}及其各城市之间的路程 最优路线是1,3,2,4,1, 其最短路程是25
上传时间: 2013-11-27
上传用户:wsf950131
《算法分析与设计》中的 “矩阵连乘程序”给定n个矩阵{A1,A2,…,An},其中Ai与Ai+1是可乘的,i=1,2 ,…,n-1。由于矩阵满足乘法的结合律,根据加括号的如何确定计算矩阵连乘积的计算次序,使得依此次序计算矩阵连乘积需要的数乘次数最少。
上传时间: 2015-11-22
上传用户:ma1301115706
空时码中的STBC技术编码方案,包括采用2发1收天线和单发单收天线的源码
上传时间: 2013-12-27
上传用户:zwei41
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
增量型PID算法汇编程序,增量式PID算法的输出量为 UnΔ = Kp[(en-en-1)+(T/Ti)en+(Td/T)(en-2*en-1+en-2)] 式中,en、en-1、en-2分别为第n次、n-1次和n-2次的偏差值,Kp、Ti、Td分别为比例系数、积分系数和微分系数,T为采样周期。
上传时间: 2016-03-11
上传用户:zaizaibang
用键盘、按键、八段码和LED模拟电梯的工作过程。楼层设为8层,键盘数字键1~8用来键入希望停的楼层,8个LED希望停的楼层,八段码指示电梯当前所在楼层,按钮用来启、停电梯。电梯正常运行时以每2秒1层的速度上升或下降
上传时间: 2016-03-14
上传用户:清风冷雨
简单的java的程序设计,要求编写Application或 Applet程序实现,程序编译正确,并运行出正确结果。 1.编写一个程序,求100以内的全部素数。 2.求1+2!+3!+...+10!的和 程序分析:此程序只是把累加变成了累乘。
上传时间: 2016-03-21
上传用户:zm7516678
任务:参加运动会有n个学校,学校编号为1……n。比赛分成m个男子项目,和w个女子项目。项目编号为男子1……m,女子m+1……m+w。不同的项目取前五名或前三名积分;取前五名的积分分别为:7、5、3、2、1,前三名的积分分别为:5、3、2;哪些取前五名或前三名由学生自己设定。(m<=20,n<=20) 功能要求:1).可以输入各个项目的前三名或前五名的成绩;
标签:
上传时间: 2016-03-21
上传用户:athjac