private double PointToAngle(Point AOrigin, Point APoint) { if (APoint.X == AOrigin.X) if (APoint.Y > AOrigin.y) return Math.PI * 0.5f else return Math.PI * 1.5f else if (APoint.Y == AOrigin.y) if (APoint.X > AOrigin.X) return 0 else return Math.PI else {
標(biāo)簽: AOrigin APoint Point PointToAngle
上傳時(shí)間: 2013-12-18
上傳用戶(hù):rocketrevenge
這是一個(gè)拼圖游戲。玩家應(yīng)該將打散的小圖拼成一張大圖。 玩家可以通過(guò)鼠標(biāo)和鍵盤(pán)來(lái)移動(dòng)小圖,移動(dòng)的次數(shù)和拼成 一張大圖所化費(fèi)的時(shí)間作為游戲得分的依據(jù)。 成績(jī)=1000-時(shí)間(秒)-移動(dòng)步數(shù)*10 按F1鍵重新開(kāi)始該游戲,按Y健可以預(yù)覽整個(gè)的圖片
標(biāo)簽: 家 鼠標(biāo) 鍵盤(pán) 移動(dòng)
上傳時(shí)間: 2016-11-01
上傳用戶(hù):Yukiseop
a Java program that reads in the following values from the standard input device (i.e. Keyboard) and writes its result on the standard output device (i.e. Console/Monitor): Inputs: A: the loan amount in dollars and cents (e.g. 150000.00). r: the net annual interest rate, expressed as an integer (e.g. 10 which means 10%) Y: the number of whole remaining years (for repayment) M: the number of remaining months Output: The program should calculate and output the amount of monthly repayments in dollars and cents as single value (e.g. $840.55)
標(biāo)簽: i.e. following the Keyboard
上傳時(shí)間: 2013-12-15
上傳用戶(hù):米卡
本文采用蒙特卡洛方法,將方程y=sin(x)+x與方程y=cos(x)+x之間的曲線包絡(luò)面積求解出來(lái)。
標(biāo)簽: 蒙特卡洛
上傳時(shí)間: 2016-11-04
上傳用戶(hù):gtzj
用蒙特卡洛方法,求解出y=cos(x)/x在給定區(qū)間上的定積分值。
標(biāo)簽: 蒙特卡洛
上傳時(shí)間: 2014-01-22
上傳用戶(hù):1966640071
輸入某年某月某日,判斷是不是閏年? 輸入三個(gè)整數(shù)x,y,z,請(qǐng)把這三個(gè)數(shù)由小到大輸出。
標(biāo)簽: 輸入
上傳時(shí)間: 2013-12-17
上傳用戶(hù):aix008
顯示螺旋隊(duì)列,//螺旋隊(duì)列.cpp // 21 22 ... ... // 20 7 8 9 10 // 19 6 1 2 11 // 18 5 4 3 12 // 17 16 15 14 13 //看清以上數(shù)字排列的規(guī)律,設(shè)1點(diǎn)的坐標(biāo)是(0,0),X方向向右為正,y方向向下為正。例如,7的坐標(biāo)為 //(-1,-1),2的坐標(biāo)為(0,1),3的坐標(biāo)為(1,1)。編程實(shí)現(xiàn)輸入任意一點(diǎn)坐標(biāo)(x,y),輸出所對(duì)應(yīng)得
上傳時(shí)間: 2013-12-18
上傳用戶(hù):許小華
用RBF神經(jīng)網(wǎng)絡(luò),完成對(duì)y=f(x)的曲線擬合。
標(biāo)簽: RBF 神經(jīng)網(wǎng)絡(luò)
上傳時(shí)間: 2013-12-06
上傳用戶(hù):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).
標(biāo)簽: from eliminates PRINCIPLE algorithm
上傳時(shí)間: 2016-11-27
上傳用戶(hù):凌云御清風(fēng)
標(biāo)準(zhǔn)的遺傳算法代碼,下面是程序: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
標(biāo)簽: 標(biāo)準(zhǔn) 代碼 算法
上傳時(shí)間: 2013-12-08
上傳用戶(hù):pkkkkp
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1