一個有undo,redo,cut等功能的JTextArea
標簽: undo
上傳時間: 2014-01-09
上傳用戶:Altman
用JSP鏈接到數(shù)據(jù)庫使用起來非常簡單,CUT然后PASTE,原代碼中我給出了詳細的注釋。
標簽: JSP 數(shù)據(jù)庫
上傳時間: 2013-11-27
上傳用戶:kelimu
模擬退火算法 模擬退火算法(Simulated Annealing,簡稱SA算法)是模擬加熱熔化的金屬的退火過程,來尋找全局最優(yōu)解的有效方法之一。 模擬退火的基本思想和步驟如下: 設S={s1,s2,…,sn}為所有可能的狀態(tài)所構(gòu)成的集合, f:S—R為非負代價函數(shù),即優(yōu)化問題抽象如下: 尋找s*∈S,使得f(s*)=min f(si) 任意si∈S (1)給定一較高初始溫度T,隨機產(chǎn)生初始狀態(tài)S (2)按一定方式,對當前狀態(tài)作隨機擾動,產(chǎn)生一個新的狀態(tài)S’ S’=S+sign(η).δ 其中δ為給定的步長, η為[-1,1]的隨機數(shù)
標簽: Simulated Annealing 模擬退火算法 模擬
上傳時間: 2014-01-02
上傳用戶:gengxiaochao
此程序?qū)崿F(xiàn)的是一個運算器,是在一個程序的基礎上進行改進的,計算器中需要的運算以及操作對象: IF,AND,OR,<,<=,>,>=,<>,=,== 數(shù)字0-9,(,),+,-,*,/, SIN,COS,TAN,POW,EXP,ABS,SQRT,INT,LN,LOG,MIN,MAX.
上傳時間: 2015-04-09
上傳用戶:love1314
Matlab中非小波工具箱的應用小波變換處理圖像,可以copy,cut,paste小波分量。
上傳時間: 2015-04-25
上傳用戶:rishian
物流分析工具包。Facility location: Continuous minisum facility location, alternate location-allocation (ALA) procedure, discrete uncapacitated facility location Vehicle routing: VRP, VRP with time windows, traveling salesman problem (TSP) Networks: Shortest path, min cost network flow, minimum spanning tree problems Geocoding: U.S. city or ZIP code to longitude and latitude, longitude and latitude to nearest city, Mercator projection plotting Layout: Steepest descent pairwise interchange (SDPI) heuristic for QAP Material handling: Equipment selection General purpose: Linear programming using the revised simplex method, mixed-integer linear programming (MILP) branch and bound procedure Data: U.S. cities with populations of at least 10,000, U.S. highway network (Oak Ridge National Highway Network), U.S. 3- and 5-digit ZIP codes
標簽: location location-allocation Continuous alternate
上傳時間: 2015-05-17
上傳用戶:kikye
最接近點對問題是求二維坐標中的點對問題,該算法是為了將平面上點集S線性分割為大小大致相等的2個子集S1和S2,我們選取一垂直線l:x=m來作為分割直線。其中m為S中各點x坐標的中位數(shù)。由此將S分割為S1={p∈S|px≤m}和S2={p∈S|px>m}。從而使S1和S2分別位于直線l的左側(cè)和右側(cè),且S=S1∪S2 。由于m是S中各點x坐標值的中位數(shù),因此S1和S2中的點數(shù)大致相等。 遞歸地在S1和S2上解最接近點對問題,我們分別得到S1和S2中的最小距離δ1和δ2。現(xiàn)設δ=min(δ1,δ1)。若S的最接近點對(p,q)之間的距離d(p,q)<δ則p和q必分屬于S1和S2。不妨設p∈S1,q∈S2。那么p和q距直線l的距離均小于δ。因此,我們?nèi)粲肞1和P2分別表示直線l的左邊和右邊的寬為δ的2個垂直長條,則p∈S1,q∈S2。
標簽: 二維
上傳時間: 2015-05-19
上傳用戶:shawvi
電話計費器程序/*信號定義: clk: 時鐘信號,本例中其頻率值為1Hz; decide: 電話局反饋回來的信號,代表話務種類,“01”表示市話,“10”表示 長話,“11”表示特話; dispmoney: 用來顯示卡內(nèi)余額,其單位為角,這里假定能顯示的最大數(shù)額為50 元 (500 角); disptime: 顯示本次通話的時長; write,read: 當write 信號下降沿到來時寫卡,當話卡插入,read 信號變高時讀卡; warn: 余額過少時的告警信號。本例中,當打市話時,余額少于3 角,打長 話時,余額少于6 角,即會產(chǎn)生告警信號; cut: 當告警時間過長時自動切斷通話信號。 */
上傳時間: 2014-01-15
上傳用戶:hewenzhi
Open Source for the Enterprise Open source software is changing the world of Information Technology. But making it work for your company is far more complicated than simply installing a copy of Linux. If you are serious about using open source to cut costs, accelerate development, and reduce vendor lock-in, you must institutionalize skills and create new ways of working. You must understand how open source is different from commercial software and what responsibilities and risks it brings. Open Source for the Enterprise is a sober guide to putting open source to work in the modern IT department.
標簽: Open Information Enterprise the
上傳時間: 2013-12-27
上傳用戶:R50974
//=== === === === === === === === === === === === === === = //函數(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)...
上傳時間: 2015-07-19
上傳用戶:waizhang
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1