輸入某年某月某日,判斷是不是閏年? 輸入三個整數x,y,z,請把這三個數由小到大輸出。
標簽: 輸入
上傳時間: 2013-12-17
上傳用戶:aix008
顯示螺旋隊列,//螺旋隊列.cpp // 21 22 ... ... // 20 7 8 9 10 // 19 6 1 2 11 // 18 5 4 3 12 // 17 16 15 14 13 //看清以上數字排列的規律,設1點的坐標是(0,0),X方向向右為正,y方向向下為正。例如,7的坐標為 //(-1,-1),2的坐標為(0,1),3的坐標為(1,1)。編程實現輸入任意一點坐標(x,y),輸出所對應得
上傳時間: 2013-12-18
上傳用戶:許小華
用RBF神經網絡,完成對y=f(x)的曲線擬合。
上傳時間: 2013-12-06
上傳用戶:mikesering
PRINCIPLE: The UVE algorithm detects and eliminates from a PLS model (including from 1 to A components) those variables that do not carry any relevant information to model Y. The criterion used to trace the un-informative variables is the reliability of the regression coefficients: c_j=mean(b_j)/std(b_j), obtained by jackknifing. The cutoff level, below which c_j is considered to be too small, indicating that the variable j should be removed, is estimated using a matrix of random variables.The predictive power of PLS models built on the retained variables only is evaluated over all 1-a dimensions =(yielding RMSECVnew).
標簽: from eliminates PRINCIPLE algorithm
上傳時間: 2016-11-27
上傳用戶:凌云御清風
標準的遺傳算法代碼,下面是程序:function y=fitness(chrom,p,aim) global P_cross P_mutation [Popsize len]=size(chrom) fitness_gene=zeros(Popsize,1) in_he=zeros(4,1) out_he=zeros(4,1) in_out=0 out_out=0
上傳時間: 2013-12-08
上傳用戶:pkkkkp
The VGA example generates a 320x240 diffusion-limited-aggregation (DLA) on Altera DE2 board. A DLA is a clump formed by sticky particles adhering to an existing structure. In this design, we start with one pixel at the center of the screen and allow a random walker to bounce around the screen until it hits the pixel at the center. It then sticks and a new walker is started randomly at one of the 4 corners of the screen. The random number generators for x and y steps are XOR feedback shift registers (see also Hamblen, Appendix A). The VGA driver, PLL, and reset controller from the DE2 CDROM are necessary to compile this example. Note that you must push KEY0 to start the state machine.
標簽: diffusion-limited-aggregation DLA generates 320x240
上傳時間: 2014-01-16
上傳用戶:225588
本代碼包為本人的一篇文章<一個占用內存極少的菜單系統的實現>在在PC上的測試移植代碼。 ------------------------------ Menu_Src目錄為Menu的源代碼 Ks0108.C的void Display_Locate(unsigned char DisplayData, unsigned char X, unsigned char Y)函數為最底層的顯示函數。 該函數調用LCD模擬函數來完成顯示。 KeyScan.C的unsigned char KeyScan(void)函數為鍵盤模擬函數。 void DelayMs( WORD time ) 延時 ------------------------------ GUI_SIM.exe為編譯后的文件,可以直觀看到這個GUI的效果. PC鍵盤的4個按鍵控制菜單周轉: PC按鍵 菜單中功能 up 向上鍵 確定鍵 進入子菜單 down向下鍵 取消鍵 返回父菜單 left向左鍵 向上鍵 菜單項上一項 right向右鍵 向下鍵 菜單項下一項 有興趣自己編譯VC工程:\Project\Menu.dsw <一個占用內存極少的菜單系統的實現>相關PDF文檔和其他資料在以下鏈接: http://www.ouravr.com/bbs/bbs_content.jsp?bbs_sn=798580&bbs_page_no=3&bbs_id=9999
上傳時間: 2014-06-24
上傳用戶:stvnash
計算二日期的間隔天數,計算某日期為星期幾,打印對象當前數據的y年m月的月歷,一次增加若干天,對兩個日期進行其他比較運算等。
標簽: 計算
上傳時間: 2016-12-18
上傳用戶:
視頻編碼電路主要實現接收8位CCIR656格式的YUV數據,(例如MPEG解碼數據),并編碼成亮度Y和色度信號C,以及合成CVBS信號,經過D/A轉換后輸出。基本的編碼功能包括副載波產生,色差信號調制,同步信號內插。 主要應用在視頻處理,軍事圖像處理。 GM7221設計原理圖
上傳時間: 2013-12-29
上傳用戶:Divine
//下面是畫圓的程序, //畫線、畫圓、畫各種曲線其實都很簡單,歸根到底就是x、y的二元方程嘛 //對算法感興趣的話建議去找本《計算機圖形學》看看,不是賣關子哦。實在是幾句話說不清除,呵呵 // ---------------------------------------------- //字節 void circleDot(unsigned char x,unsigned char y,char xx,char yy)//內部函數,對稱法畫圓的8個鏡像點 {//對稱法畫圓的8個鏡像點
標簽: 程序
上傳時間: 2014-01-07
上傳用戶:秦莞爾w