c語言版的多項(xiàng)式曲線擬合。 用最小二乘法進(jìn)行曲線擬合. 用p-1 次多項(xiàng)式進(jìn)行擬合,p<= 10 x,y 的第0個(gè)域x[0],y[0],沒有用,有效數(shù)據(jù)從x[1],y[1] 開始 nNodeNum,有效數(shù)據(jù)節(jié)點(diǎn)的個(gè)數(shù)。 b,為輸出的多項(xiàng)式系數(shù),b[i] 為b[i-1]次項(xiàng)。b[0],沒有用。 b,有10個(gè)元素ok。
標(biāo)簽: 多項(xiàng)式 曲線擬合 c語言 最小二乘法
上傳時(shí)間: 2014-01-12
上傳用戶:變形金剛
使用pso求最小化一函數(shù) matlab程式碼,寫的非常簡潔(不到100行),且還包括了2維的圖形展示,和大家分享參考!!! 一起學(xué)習(xí)matlab和各種optimize methods 最小化:(x-15)^2+(y-20)^2 The swarm matrix is swarm(index, [location, velocity, best position, best value], [x, y components or the value component]) Author: Wesam ELSHAMY (wesamelshamy@yahoo.com) MSc Student, Electrical Enginering Dept., Faculty of Engineering Cairo University, Egypt
上傳時(shí)間: 2013-12-18
上傳用戶:zhaiye
C51的一些誤區(qū)和注意事項(xiàng)(ZT) 1)C忌諱絕對(duì)定位。 常看見初學(xué)者要求使用_at_,這是一種謬誤,把C當(dāng)作ASM看待了。在C中變量 的定位是編譯器的事情,初學(xué)者只要定義變量和變量的作 用域,編譯器就把一個(gè)固定地址給這個(gè) 變量。怎么取得這個(gè)變量的地址?要用指針。比如unsigned char data x 后,x的地址就是...
標(biāo)簽: C51 at 注意事項(xiàng) 定位
上傳時(shí)間: 2014-12-05
上傳用戶:xiaoxiang
The decoding algorithm used in RBDS.c is based on error trapping. The program emulates the operation of the encoder and decoder of a binary cyclic codes, using bitwise shifts and xor for modulo g(x) operations.
標(biāo)簽: The algorithm operation decoding
上傳時(shí)間: 2015-07-05
上傳用戶:youmo81
這是關(guān)于c++的電子書籍,Accelerated C++ Practical Programming by Example by Andrew Koenig and Barbara E. Moo Addison-Wesley, 2000 ISBN 0-201-70353-X Pages 336 Second Printing
上傳時(shí)間: 2014-01-09
上傳用戶:evil
本書第二部分講述的是在Wi n 3 2平臺(tái)上的Wi n s o c k編程。對(duì)于眾多的基層網(wǎng)絡(luò)協(xié)議, Wi n s o c k是訪問它們的首選接口。而且在每個(gè)Wi n 3 2平臺(tái)上,Wi n s o c k都以不同的形式存在著。 Wi n s o c k是網(wǎng)絡(luò)編程接口,而不是協(xié)議。它從U n i x平臺(tái)的B e r k e l e y(B S D)套接字方案借鑒了 許多東西,后者能訪問多種網(wǎng)絡(luò)協(xié)議。在Wi n 3 2環(huán)境中,Wi n s o c k接口最終成為一個(gè)真正的 “與協(xié)議無關(guān)”接口,尤其是在Winsock 2發(fā)布之后。
標(biāo)簽: 分 編程 網(wǎng)絡(luò)協(xié)議
上傳時(shí)間: 2015-07-08
上傳用戶:thinode
More Exceptional C++ By Herb Sutter Publisher : Addison Wesley Pub Date : December 17, 2001 ISBN : 0-201-70434-X Pages : 304
標(biāo)簽: Exceptional Publisher December Addison
上傳時(shí)間: 2014-01-20
上傳用戶:1159797854
1.功能 利用廣義逆求解無約束條件下的優(yōu)化問題(C語言) 2.參數(shù)說明 int m : 非線性方程組中方程個(gè)數(shù) int n : 非線性方程組中未知數(shù)個(gè)數(shù) double eps1 : 控制最小二乘解的精度要求 double eps2 : 用于奇異值分解中的控制精度要求 double x[n] : 存放非線性方程組解的初始近似值X(0),要求各分量不全為0 int ka : Ka=max{m,n}+1 void (*f)() : 指向計(jì)算非線性方程組中各方程左端函數(shù)值的函數(shù)名(用戶自編) void (*s)() : 指向計(jì)算雅可比矩陣的函數(shù)名 int ngin() : 函數(shù)返回一個(gè)標(biāo)志值 3.文件說明 ngin.c函數(shù)文件 ngin0.c主函數(shù)文件
上傳時(shí)間: 2013-12-23
上傳用戶:大三三
回溯(b a c k t r a c k i n g)是一種系統(tǒng)地搜索問題解答的方法。為了實(shí)現(xiàn)回溯,首先需要為問題定義一個(gè)解空間( solution space),這個(gè)空間必須至少包含問題的一個(gè)解(可能是最優(yōu)的)。在迷宮老鼠問題中,我們可以定義一個(gè)包含從入口到出口的所有路徑的解空間;在具有n 個(gè)對(duì)象的0 / 1背包問題中(見1 . 4節(jié)和2 . 2節(jié)),解空間的一個(gè)合理選擇是2n 個(gè)長度為n 的0 / 1向量的集合,這個(gè)集合表示了將0或1分配給x的所有可能方法。當(dāng)n= 3時(shí),解空間為{ ( 0 , 0 , 0 ),( 0 , 1 , 0 ),( 0 , 0 , 1 ),( 1 , 0 , 0 ),( 0 , 1 , 1 ),( 1 , 0 , 1 ),( 1 , 1 , 0 ),( 1 , 1 , 1 ) }。
標(biāo)簽: 搜索
上傳時(shí)間: 2014-01-17
上傳用戶:jhksyghr
CCS編程環(huán)境 使用的是匯編加C的混合編程方法: The programme of the Correlation Algorithm. Using INT2 to get the input signal. Array x, in first step, is the input signal produced by programme, in next step, is the input signal get from A/D, the length is 128, 32-bit floating point. Array y, in first step, is the input signal produced by programme, in next step, is the input signal get from A/D, the length is 128, 32-bit floating point. Array cor is the Correlation result, the length is 255, 32-bit floating point.
標(biāo)簽: Correlation Algorithm programme the
上傳時(shí)間: 2013-12-21
上傳用戶:leixinzhuo
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1