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