多項式曲線擬合 任意介數(shù) Purpose - Least-squares curve fit of arbitrary order working in C++ Builder 2007 as a template class, using vector<FloatType> parameters. Added a method to handle some EMathError exceptions. If do NOT want to use this just call PolyFit2 directly. usage: Call PolyFit by something like this. CPolyFit<double> PolyFitObj double correlation_coefficiant = PolyFitObj.PolyFit(X, Y, A) where X and Y are vectors of doubles which must have the same size and A is a vector of doubles which must be the same size as the number of coefficients required. returns: The correlation coefficient or -1 on failure. produces: A vector (A) which holds the coefficients.
標簽: Least-squares arbitrary Purpose Builder
上傳時間: 2013-12-18
上傳用戶:宋桃子
C/C++ implementation of the Levenberg-Marquardt non-linear least squares algorithm. levmar includes double and single precision LM versions, both with analytic and finite difference approximated jacobians
標簽: Levenberg-Marquardt implementation non-linear algorithm
上傳時間: 2013-12-28
上傳用戶:gxf2016
(1) 設計和編寫代表矩陣的Matrix類。該類包括矩陣行列數(shù)變量int rows和int cols,矩陣數(shù)據(jù)數(shù)組double data[][],構(gòu)造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),獲取某元素值的方法getData(int row,int col),設置某元素值的方法setData(int row,int col,double value),計算兩個矩陣的乘積的方法multiply(Matrix m)以及toString()等內(nèi)容。
上傳時間: 2016-08-19
上傳用戶:qiao8960
(1) 實現(xiàn)一個Point類,該類包含表示坐標的兩個int型變量x、y,構(gòu)造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,計算兩點間距離的double distance(Point)方法。其中計算平方根用Math.sqrt()方法。 (2) 實現(xiàn)一個Circle類,該類包含表示圓心的Point型變量center,表示半徑的int radius變量,以及構(gòu)造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周長和面積的int perimeter()、double area()方法,返回兩個圓是否為同一個圓(返回0)、同心圓(返回1)、相交的圓(返回2)、分離的圓(返回3)、包含的圓(返回4)等關系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 實現(xiàn)測試上述兩個類的ClassTest類。該類在main方法中分別創(chuàng)建若干個Point對象和Circle對象,并調(diào)用相關方法,輸出方法的返回值,驗證其正確性。 (4) 將Point類、Circle類和主類的包名分別調(diào)整為p1、p2、p3,并重新運行,驗證是否運行正確。
標簽: Point
上傳時間: 2014-11-25
上傳用戶:cylnpy
ITU的關于圖像主觀質(zhì)量評價的標準文檔,具體描述了double-stimulus continuous quality-scale (DSCQS)的測試條件和方法
上傳時間: 2014-01-18
上傳用戶:dancnc
DevExpress.ExpressSideBar.v5.37.for.Delphi.BCB.Full.Source delphi和 bcb源碼,能輕松實現(xiàn)outlook風格的側(cè)邊欄,效果很好,推薦! ExpressSideBar is a VCL implementation of the MS Outlook bar. Designed to be easy to use and built with a significant feature set. Just drop it on a form, double click the control and in a few moments, you can customize the ExpressSideBar for your needs.
標簽: ExpressSideBar DevExpress Delphi Source
上傳時間: 2013-12-26
上傳用戶:han_zh
This application includes a demo server and client program. You could write your own server launcher and client application by using the SimpleScreenCaptureServer class and the SimpleRemoteScreenCaptureClient class. Usage: 1. Type the following command to launch the server program. java -jar SimpleCaptureScreenServerDemo.jar portnumber 2. Type the following command to launch the client program. It s a swing-based UI. java -jar RemoteScreenCaptureClientUI.jar 3. Select Run/Connect menu. Input your server address and port number. You could just double-click on the RemoteScreenCaptureClientUI.jar to launch the client program if you are using Windows. This program is written just for fun. :lol: :lol: :lol:
標簽: server application includes launcher
上傳時間: 2016-10-06
上傳用戶:kr770906
CppReference 對于c/c++的詳盡說明 C/C++ Reference General C/C++ Pre-processor commands Operator Precedence Escape Sequences ASCII Chart Data Types Keywords Standard C Library Standard C I/O Standard C String & Character Standard C Math Standard C Time & Date Standard C Memory Other standard C functions All C Functions C++ C++ I/O C++ Strings C++ String Streams Miscellaneous C++ C++ Standard Template Library C++ Algorithms C++ Vectors C++ Double-Ended Queues C++ Lists C++ Priority Queues C++ Queues C++ Stacks C++ Sets C++ Multisets C++ Maps C++ Multimaps C++ Bitsets Iterators All C++ Functions
標簽: Pre-processor CppReference Reference Operator
上傳時間: 2016-10-26
上傳用戶:aeiouetla
dwr.xml說明文檔。配置文件init部分聲明那些用于建立遠程bean和在方法調(diào)用中轉(zhuǎn)換bean的類.這部分是可選擇性配置的,多數(shù)情況下可以不必使用它,如果你想定義一個新的creator或者converter那么就必須在部分中聲明,but do double check on the ones that are currently available first.
上傳時間: 2014-02-14
上傳用戶:偷心的海盜
pstmt = conn.prepareStatement("select ordernumber,datetime,price,dayofmoney from zujie where ordernumber= "+ cdName + " ") rs=pstmt.executeQuery() if(rs!=null && rs.next()){ String datetime = rs.getString(2) java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat ("yyyy-MM-dd") Date date = new Date() String date1=formatter.format(date) ParsePosition pos = new ParsePosition(0) ParsePosition pos1 = new ParsePosition(0) Date dt1=formatter.parse(datetime,pos) Date dt2=formatter.parse(date1,pos1) Long l = (dt2.getTime()-dt1.getTime())/(3600*24*1000)+1 double price = rs.getDouble(3) double dayofmoney=rs.getDouble(4) double dayofmoneybuy=dayofmoney*l double otherMoney = price-dayofmoneybuy request.setAttribute("price", price) request.setAttribute("l", l) request.setAttribute("dayofmoney", dayofmoneybuy) request.setAttribute("otherMoney", otherMoney)
標簽: prepareStatement ordernumber dayofmoney datetime
上傳時間: 2013-12-14
上傳用戶:zsjinju