亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

捕魚(yú)

  • 使用pso求最小化一函數(shù) matlab程式碼

    使用pso求最小化一函數(shù) matlab程式碼,寫的非常簡潔(不到100行),且還包括了2維的圖形展示,和大家分享參考!!! 一起學習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

    標簽: matlab pso 程式

    上傳時間: 2013-12-18

    上傳用戶:zhaiye

  • 首先定義一個點類Point

    首先定義一個點類Point,其私有成員為其坐標X,Y。設(shè)計構(gòu)造函數(shù),拷貝構(gòu)造函數(shù),析構(gòu)函數(shù)(可以什么都不做,只打印信息,表示其被調(diào)用),設(shè)置新值函數(shù)Set, 打印成員值函數(shù)Print。再定義一個線類Line,線類是在公有繼承點類的基礎(chǔ)上,新增私有成員斜率S,并設(shè)計構(gòu)造函數(shù),拷貝構(gòu)造函數(shù),析構(gòu)函數(shù)(可以什么都不做,只打印信息,表示其被調(diào)用),設(shè)置新值函數(shù)Set, 打印成員值函數(shù)Print以及其它你認為對訪問此Line類對象有用的成員函數(shù)。并用此Line類定義對象,調(diào)用所有成員函數(shù)。尤其是考察構(gòu)造函數(shù)的調(diào)用順序。

    標簽: Point 定義

    上傳時間: 2015-07-07

    上傳用戶:xfbs821

  • 本書第二部分講述的是在Wi n 3 2平臺上的Wi n s o c k編程。對于眾多的基層網(wǎng)絡(luò)協(xié)議

    本書第二部分講述的是在Wi n 3 2平臺上的Wi n s o c k編程。對于眾多的基層網(wǎng)絡(luò)協(xié)議, Wi n s o c k是訪問它們的首選接口。而且在每個Wi n 3 2平臺上,Wi n s o c k都以不同的形式存在著。 Wi n s o c k是網(wǎng)絡(luò)編程接口,而不是協(xié)議。它從U n i x平臺的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接口最終成為一個真正的 “與協(xié)議無關(guān)”接口,尤其是在Winsock 2發(fā)布之后。

    標簽: 編程 網(wǎng)絡(luò)協(xié)議

    上傳時間: 2015-07-08

    上傳用戶:thinode

  • 設(shè)計有理數(shù)類rational_number  數(shù)據(jù)成員: int numerator(分子) int denominator(分母)  成員函數(shù) (

    設(shè)計有理數(shù)類rational_number  數(shù)據(jù)成員: int numerator(分子) int denominator(分母)  成員函數(shù) (1)構(gòu)造函數(shù)rational_number ()和rational_number (int x, int y) (2)拷貝構(gòu)造函數(shù) (3) 重載運算符“+”、“-”、“*”和“/” 2. 設(shè)計有理數(shù)類rational_number  數(shù)據(jù)成員: int numerator(分子) int denominator(分母)  成員函數(shù) (1)構(gòu)造函數(shù)rational_number ()和rational_number (int x, int y) (2)拷貝構(gòu)造函數(shù)  友元重載運算符“+”、“-”、“*”和“/” 3. 分別使用以上兩個類,完成有理數(shù)的加、減、乘、除運算;驗證其加運算、乘運算的交換律。

    標簽: 61656 rational_number denominator int

    上傳時間: 2014-11-04

    上傳用戶:caiiicc

  • //=== === === === === === === === === === === ===== //函數(shù)說明 //函數(shù)名稱:Correlation //函數(shù)功能:計算最小二乘法擬合的多項

    //=== === === === === === === === === === === ===== //函數(shù)說明 //函數(shù)名稱:Correlation //函數(shù)功能:計算最小二乘法擬合的多項式的相關(guān)系數(shù) //使用方法:int M------ 擬合多項式的階數(shù)(已知條件) // double *b--- 擬合曲線的系數(shù),排列順序為由高階到低階(已知條件) // double *x--- 結(jié)點x軸數(shù)據(jù)(已知條件) // double *y--- 結(jié)點y軸數(shù)據(jù)(已知條件) // double *Yg-- 結(jié)點估計值,個數(shù)為m(過程變量) // int m------ 結(jié)點個數(shù)(已知條件) //注意事項:多項式階數(shù)最高為10,多項式的形式為 y = a0 + a1x +a2x2

    標簽: Correlation 函數(shù) 計算 最小二乘法擬合

    上傳時間: 2013-11-26

    上傳用戶:change0329

  • //=== === === === === === === === === === === ===== //函數(shù)說明 //函數(shù)名稱:Correlation //函數(shù)功能:計算最小二乘法擬合的多項

    //=== === === === === === === === === === === ===== //函數(shù)說明 //函數(shù)名稱:Correlation //函數(shù)功能:計算最小二乘法擬合的多項式的相關(guān)系數(shù) //使用方法:int M------擬合多項式的項數(shù)(已知條件) // double *b---擬合曲線的系數(shù),按升次排列(已知條件) // double *x---結(jié)點x軸數(shù)據(jù)(已知條件) // double *y---結(jié)點y軸數(shù)據(jù)(已知條件) // double *Yg--結(jié)點估計值,與*y相對應(yīng),個數(shù)為m(過程變量) // int m------結(jié)點個數(shù)(已知條件) //注意事項:多項式階數(shù)最高為10,多項式的形式為 y = b0 + b1*(x-Xavr)...

    標簽: Correlation 函數(shù) 計算 最小二乘法擬合

    上傳時間: 2014-11-23

    上傳用戶:yxgi5

  • //=== === === === === === === === === === === === === === = //函數(shù)說明 //函數(shù)名稱:PolyFit //函數(shù)功能:最小二乘法曲線擬

    //=== === === === === === === === === === === === === === = //函數(shù)說明 //函數(shù)名稱:PolyFit //函數(shù)功能:最小二乘法曲線擬合 //使用方法:double *x ---- 存放n個數(shù)據(jù)點的X坐標 // double *y ---- 存放n個數(shù)據(jù)點的Y坐標 // int n -------- 給定數(shù)據(jù)點個數(shù) // double *a ---- 返回m-1次擬合多項式的m個系數(shù) // int m -------- 擬合多項式的項數(shù),即擬合多項式的最高次為m-1。要求m<=n,且 // m<=20。若m>n或m>20,則本函數(shù)自動按m=min{n,20}處理 // double *dt --- dt[0]返回擬合多項式與各數(shù)據(jù)點誤差的平方和;dt[1]返回擬合多 // 項式與各數(shù)據(jù)點的誤差絕對值之和;dt[2]返回擬合多項式與各數(shù)據(jù) // 點誤差絕對值的最大值 //注意事項:擬合多項式的形式為 y = b0 + b1*(x-Xavr)...

    標簽: PolyFit 函數(shù) 最小二乘法

    上傳時間: 2015-07-19

    上傳用戶:waizhang

  • 空間后方交匯求解相機外方位元素

    空間后方交匯求解相機外方位元素,變量如下 % x,y 控制點像點坐標 % X,Y,Z 控制點空間坐標 %f焦距 %X0,Y0,Z0,a,b,c六個外方位元素 %x0,y0,-f內(nèi)方位元素:光心坐標 %cha,chb,chc:外方位角元素改正數(shù) %count 記錄迭代次數(shù) %R 旋轉(zhuǎn)矩陣 %A 線性化的偏導系數(shù)矩陣 %L 常數(shù)項矩陣 %M0 外方位元素矩陣 %M1 外方位元素改正數(shù)矩陣

    標簽: 相機 元素

    上傳時間: 2014-01-10

    上傳用戶:saharawalker

  • zemax源碼: This DLL models an anamorphic aspheric surface. This surface is essentially an even asp

    zemax源碼: This DLL models an anamorphic aspheric surface. This surface is essentially an even aspheric surface with different terms for the x and y directions. The sag is given by: Z = ((CX*x*x)+(CY*y*y)) / (1 + sqrt(1-((1+KX)*CX*CX*x*x)-((1+KY)*CY*CY*y*y))) + AR*( (1 - AP)*x*x + (1 + AP)*y*y )^2 + BR*( (1 - BP)*x*x + (1 + BP)*y*y )^3 + CR*( (1 - CP)*x*x + (1 + CP)*y*y )^4 + DR*( (1 - DP)*x*x + (1 + DP)*y*y )^5 Note the terms AR, BR, CR, and DR ... have units of length to the -3, -5, -7, and -9 power. The terms AP, BP, CP, and DP are dimensionless. The surface is rotationally symmetric only if AP = BP = CP = DP == 0 and CX = CY and KX = KY.

    標簽: surface This essentially anamorphic

    上傳時間: 2015-07-25

    上傳用戶:lht618

  • zemax源碼: This DLL models a standard ZEMAX surface type, either plane, sphere, or conic The surfac

    zemax源碼: This DLL models a standard ZEMAX surface type, either plane, sphere, or conic The surface also demonstrates a user-defined apodization filter The filter is defined as part of the real ray trace, case 5 The filter can be used at the stop to produce x-y Gaussian apodization similar to the Gaussian pupil apodization in ZEMAX but separate in x and y. The amplitude apodization is of the form EXP[-(Gx(x/R)^2 + Gy(y/R)^2)] The transmission is of the form EXP[-2(Gx(x/R)^2 + Gy(y/R)^2)] where x^2 + y^2 = r^2 R = semi-diameter The tranmitted intensity is maximum in the center. T is set to 0 if semi-diameter < 1e-10 to avoid division by zero.

    標簽: standard surface models either

    上傳時間: 2013-12-05

    上傳用戶:003030

主站蜘蛛池模板: 依兰县| 曲沃县| 元氏县| 武威市| 正蓝旗| 搜索| 清水河县| 道真| 洛浦县| 博罗县| 定州市| 乡城县| 闵行区| 广饶县| 安阳市| 河间市| 宣化县| 玉环县| 东乡县| 确山县| 永吉县| 双牌县| 余干县| 喀什市| 南安市| 新安县| 佳木斯市| 萝北县| 余庆县| 武强县| 松溪县| 巴东县| 雷山县| 蛟河市| 林甸县| 乡宁县| 盐山县| 江油市| 余庆县| 将乐县| 普宁市|