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
这是一个C51写的程序,采用Keil C51 编译开发.是16*2字符液晶屏驱动程序.硬件连线:DB0-->P0.0 DB1-->P0.1 DB2-->P0.2 DB3-->P0.3 DB4-->P0.4 DB5-->P0.5 DB6-->P0.6 DB7-->P0.7 RS-->P2.0 RW-->P2.1 E-->P2.7 VLCD接1K2的电阻到CND。
上传时间: 2013-12-29
上传用户:tb_6877751
C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods: abs() , FermatLittleTest(int confidence) ,gcd(BigInteger bi) , genCoPrime(int bits, Random rand) , genPseudoPrime(int bits, int confidence, Random rand) , genRandomBits(int bits, Random rand) , isProbablePrime(int confidence) , isProbablePrime() , Jacobi(BigInteger a, BigInteger b) , LucasSequence(BigInteger P, BigInteger Q, BigInteger k, BigInteger n) ,max(BigInteger bi) , min(BigInteger bi) , modInverse(BigInteger modulus) , RabinMillerTest(int confidence) ,
标签: BigInteger class BIgInteger program
上传时间: 2013-12-23
上传用户:ynzfm
假定已经有许多应用采用了程序1 - 1 5中所定义的C u r r e n c y类,现在我们想要对C u r r e n c y类 的描述进行修改,使其应用频率最高的两个函数A d d和I n c r e m e n t可以运行得更快,从而提高应 用程序的执行速度。由于用户仅能通过p u b l i c部分所提供的接口与C u r r e n c y类进行交互,
上传时间: 2015-10-11
上传用户:BIBI
利用二元域的高斯消元法得到输入矩阵H对应的生成矩阵G,同时返回与G满足mod(G*P ,2)=0的矩阵P,其中P 表示P的转置 使用方法:[P,G]=Gaussian(H,x),x=1 or 2,1表示G的左边为单位阵
上传时间: 2014-11-27
上传用户:semi1981
自己写的用Matlab模拟一个缓冲区大小(包括正在服务的那个)为10的随机排队系统。 (1)到达过程是的泊松过程(到达速率为Mu),服务时间服从独立指数分布(均值为1/Lamda)。 对Mu//Lamda=0.2,Mu//Lamda=0.8和Mu//Lamda=1.1三种情况进行仿真,求出队列中接受服务用户为n的概率P(n), n=0,...,10。并与理论结果进行比较。 (2)假设到达过程为均匀过程(到达速率为Mu),服务时间服从独立瑞利分布(均值为1/Lamda)。
上传时间: 2013-11-26
上传用户:llandlu
crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC,Cyclic Redundancy Code)是采用多项式的 编码方式,这种方法把要发送的数据看成是一个多项式的系数 ,数据为bn-1bn-2…b1b0 (其中为0或1),则其对应的多项式为: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:数据“10010101”可以写为多项式 X7+X4+X2+1。 循环冗余校验CRC 循环冗余校验方法的原理如下: (1) 设要发送的数据对应的多项式为P(x)。 (2) 发送方和接收方约定一个生成多项式G(x),设该生成多项式 的最高次幂为r。 (3) 在数据块的末尾添加r个0,则其相对应的多项式为M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),获得商Q(x)和余式R(x),则 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2运算,T(x)所对应的数据是在原数 据块的末尾加上余式所对应的数据得到的。 (6) 发送T(x)所对应的数据。 (7) 设接收端接收到的数据对应的多项式为T’(x),将T’(x)除以G(x) ,若余式为0,则认为没有错误,否则认为有错
上传时间: 2014-01-16
上传用户:hphh
E:\VISUAL C++MFC扩展编程实例 实例35 添加帮助菜单项,在本例中将向应用程序中的H e l p菜单中添加C o n t e n t s和S e a r c h 菜单项。
上传时间: 2014-01-09
上传用户:541657925
this prog must be used with the pic_receive.rar file . I wish the two programs will hope some mcu prog designer
标签: pic_receive the programs this
上传时间: 2015-10-22
上传用户:CHINA526
用PIC控制步进电机完整资料!!希望对大家有帮助! F84程序, ******************************************************** Stepper Motor controller Author : Seiichi Inoue ******************************************************** list p=pic16f84a
上传时间: 2013-12-27
上传用户:dave520l