//=== === === === === === === === === === === ===== //函數(shù)說明 //函數(shù)名稱:Correlation //函數(shù)功能:計(jì)算最小二乘法擬合的多項(xiàng)式的相關(guān)系數(shù) //使用方法:int M------擬合多項(xiàng)式的項(xiàng)數(shù)(已知條件) // double *b---擬合曲線的系數(shù),按升次排列(已知條件) // double *x---結(jié)點(diǎn)x軸數(shù)據(jù)(已知條件) // double *y---結(jié)點(diǎn)y軸數(shù)據(jù)(已知條件) // double *Yg--結(jié)點(diǎn)估計(jì)值,與*y相對(duì)應(yīng),個(gè)數(shù)為m(過程變量) // int m------結(jié)點(diǎn)個(gè)數(shù)(已知條件) //注意事項(xiàng):多項(xiàng)式階數(shù)最高為10,多項(xiàng)式的形式為 y = b0 + b1*(x-Xavr)...
標(biāo)簽: Correlation 函數(shù) 計(jì)算 最小二乘法擬合
上傳時(shí)間: 2014-11-23
上傳用戶:yxgi5
//=== === === === === === === === === === === === === === = //函數(shù)說明 //函數(shù)名稱:PolyFit //函數(shù)功能:最小二乘法曲線擬合 //使用方法:double *x ---- 存放n個(gè)數(shù)據(jù)點(diǎn)的X坐標(biāo) // double *y ---- 存放n個(gè)數(shù)據(jù)點(diǎn)的Y坐標(biāo) // int n -------- 給定數(shù)據(jù)點(diǎn)個(gè)數(shù) // double *a ---- 返回m-1次擬合多項(xiàng)式的m個(gè)系數(shù) // int m -------- 擬合多項(xiàng)式的項(xiàng)數(shù),即擬合多項(xiàng)式的最高次為m-1。要求m<=n,且 // m<=20。若m>n或m>20,則本函數(shù)自動(dòng)按m=min{n,20}處理 // double *dt --- dt[0]返回?cái)M合多項(xiàng)式與各數(shù)據(jù)點(diǎn)誤差的平方和;dt[1]返回?cái)M合多 // 項(xiàng)式與各數(shù)據(jù)點(diǎn)的誤差絕對(duì)值之和;dt[2]返回?cái)M合多項(xiàng)式與各數(shù)據(jù) // 點(diǎn)誤差絕對(duì)值的最大值 //注意事項(xiàng):擬合多項(xiàng)式的形式為 y = b0 + b1*(x-Xavr)...
標(biāo)簽: PolyFit 函數(shù) 最小二乘法
上傳時(shí)間: 2015-07-19
上傳用戶:waizhang
空間后方交匯求解相機(jī)外方位元素,變量如下 % x,y 控制點(diǎn)像點(diǎn)坐標(biāo) % X,Y,Z 控制點(diǎn)空間坐標(biāo) %f焦距 %X0,Y0,Z0,a,b,c六個(gè)外方位元素 %x0,y0,-f內(nèi)方位元素:光心坐標(biāo) %cha,chb,chc:外方位角元素改正數(shù) %count 記錄迭代次數(shù) %R 旋轉(zhuǎn)矩陣 %A 線性化的偏導(dǎo)系數(shù)矩陣 %L 常數(shù)項(xiàng)矩陣 %M0 外方位元素矩陣 %M1 外方位元素改正數(shù)矩陣
上傳時(shí)間: 2014-01-10
上傳用戶:saharawalker
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.
標(biāo)簽: surface This essentially anamorphic
上傳時(shí)間: 2015-07-25
上傳用戶:lht618
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.
標(biāo)簽: standard surface models either
上傳時(shí)間: 2013-12-05
上傳用戶:003030
* 本算法用最小二乘法依據(jù)指定的M個(gè)基函數(shù)及N個(gè)已知數(shù)據(jù)進(jìn)行曲線擬和 * 輸入: m--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)M * f--M維基函數(shù)向量 * n--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)N-1 * x--已知數(shù)據(jù)點(diǎn)第一坐標(biāo)的N維列向量 * y--已知數(shù)據(jù)點(diǎn)第二坐標(biāo)的N維列向量 * a--無用 * 輸出: 函數(shù)返回值為曲線擬和的均方誤差 * a為用基函數(shù)進(jìn)行曲線擬和的系數(shù), * 即a[0]f[0]+a[1]f[1]+...+a[M]f[M].
標(biāo)簽: 數(shù)據(jù) 函數(shù) 算法 最小二乘法
上傳時(shí)間: 2015-07-26
上傳用戶:
* 用改進(jìn)的歐拉方法求解初值問題,其中一階微分方程未y =f(x,y) * 初始條件為x=x[0]時(shí),y=y(tǒng)[0]. * 輸入: f--函數(shù)f(x,y)的指針 * x--自變量離散值數(shù)組(其中x[0]為初始條件) * y--對(duì)應(yīng)于自變量離散值的函數(shù)值數(shù)組(其中y[0]為初始條件) * h--計(jì)算步長 * n--步數(shù) * 輸出: x為說求解的自變量離散值數(shù)組 * y為所求解對(duì)應(yīng)于自變量離散值的函數(shù)值數(shù)組
標(biāo)簽: 初值
上傳時(shí)間: 2015-07-26
上傳用戶:libinxny
輸入一系列遞減順序的整數(shù)(100,50,40,30……),以0標(biāo)志結(jié)束,將這些數(shù)作為data域逆序建立一個(gè)單鏈表;從鍵盤輸入一個(gè)整數(shù)X,將X插入到此單鏈表中并保持單鏈表data域的值遞增關(guān)系,輸出此時(shí)單鏈表各結(jié)點(diǎn)data域的值;從鍵盤輸入一個(gè)整數(shù)Y,若Y值在單鏈表中存在,則刪除data域的值為Y的結(jié)點(diǎn)(注單鏈表中沒有data域值相同的結(jié)點(diǎn)),并輸出此時(shí)單鏈表各結(jié)點(diǎn)data域的值。
上傳時(shí)間: 2013-12-20
上傳用戶:s363994250
maven 2.0 The following instructions show how to install Maven 2: 1) Unpack the archive where you would like to store the binaries, eg: tar zxvf maven-2.0.tar.gz or unzip maven-2.0.zip 2) A directory called "maven-2.0" will be created. 3) Add the bin directory to your PATH, eg: export PATH=/usr/local/maven-2.0/bin:$PATH or set PATH="c:\program files\maven-2.0\bin" %PATH% 4) Make sure JAVA_HOME is set to the location of your JDK 5) Run "mvn --version" to verify that it is correctly installed.
標(biāo)簽: instructions following archive install
上傳時(shí)間: 2014-01-19
上傳用戶:weiwolkt
數(shù)字信號(hào)處理的應(yīng)用之一是從含有加性噪聲的信號(hào)中去除噪聲。現(xiàn)有被噪聲污染的信號(hào)x[k]=s[k]+d[k],式中: 為原始信號(hào)d[k]為均勻分布的白噪聲。 (1)分別產(chǎn)生50點(diǎn)的序列s[k]和白噪聲序列d[k],將二者疊加生成x[k],并在同一張圖上繪出x0[k],d[k]和x[k]的序列波形。 (2)均值濾波可以有效去除疊加在低頻信號(hào)上的噪聲。已知3點(diǎn)滑動(dòng)平均數(shù)字濾波器的單位脈沖響應(yīng)為h[k]=[1,1,1 k=0,1,2],計(jì)算y[k]=x[k]*h[k],在同一張圖上繪出前50點(diǎn)y[k],s[k]和x[k]的波形,比較序列y[k]和s[k]。
標(biāo)簽: 信號(hào) 白噪聲 數(shù)字信號(hào)處理 分布
上傳時(shí)間: 2015-08-19
上傳用戶:Andy123456
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1