2008-03-01ãã1ã¶æéã®è¨äºä¸è¦§
æ©æ¢°å¦ç¿ã¯é£½ãã¦ããã®ã§ãä»æ¥ã¯æ³¢åæ¹ç¨å¼ã解ãã¦ã¿ãã 弦ãã²ã£ã±ã£ã¦æãé¢ãããã©ãããéåããããã¨ããã·ãã¥ã¬ã¼ã·ã§ã³ãå³ä¸æ¹åãæéã®ãã¤åã ã¤ã£ã¦ããã»ã¼ãæ¬ã«è¼ã£ã¦ãéããªãã ãã©ãåæå¤ãéããããã ã¡ãªã¿ã«æ°å¤è¨ç®ã®åèâ¦
âã§æãä½ããããã«ãããç¨åº¦ã®æåã使ã£ã¦ããã¹ãã ã¨ããããã ãã®ããã«ã¯ãããã³ããããªãæç« ãäºæ³ãã¦ããã¦ããã®æç« ãã¤ãããã»ã©ã®æåãã¨ãããã並ã¹ã¦ããã®ããããããããªãã
åãªããã¤ãã£ãã¼Javaã¯ã©ã¹ã¿ãã«ãªã£ã¦ãªãï¼
ãã¼ã»ãããã³ã§ã¯ç·å½¢åé¢ã§ããªãå ´åã«å¯¾å¿ã§ããªãã¨ãããã¨ã§ãããããããå¯è½ã«ããæ¹æ³ãid:nowokay:20080318ã§ãã¾ãã¾ããã«æãã¦ããã£ã¦ãã¾ããã å®è£ ãã¦ã¿ãã¨ãããªæãã§ãéç·å½¢åé¢ã§ããããã«ãªãã¾ããã x^2ãxyãy^2ãæ°ãã«ãâ¦
ã¨ãããã¨ã§ããã¼ã»ãããã³ãã©ããªæãã§å¤å®ãã¦ãããè¦ã¦ã¿ã¾ããã å¤å®ã®å¢çãç´ç·ã«ãªã£ã¦ãããã¨ããããã¾ãããã¼ã»ãããã³ã¯ãããããå ·åã«å¤å®çµæãåé¢ããç´ç·(å¹³é¢)ãæ±ãããã®ã§ããããç·å½¢åé¢ã¨ãããã¨ã§ãããã®ãããç·å½¢åâ¦
NNæ³ã ã¨èå¥ã®å¢çããããããããã®ã§ã3-NNæ³ã£ã¦ããã®ã使ã£ã¦ã¿ã¾ãã 3-NNæ³ã¯ãè¿ãã»ãããï¼ã¤ã®å¦ç¿ãã¿ã¼ã³ãã¨ã£ã¦ãã¦ããã®ãã¡ã®å¤æ°æ±ºã§èå¥ããæ¹æ³ã§ããããããæå³ã§ã¯ãNNæ³ã£ã¦ã®ã¯1-NNæ³ã«ãªãã¾ãã ããããã¨ãèå¥ã®å¢çãã¡â¦
NNæ³ã§å¦ç¿ããçµæããã©ããªæãã®å¤å®ã«ãªãã®ã表示ãã¦ã¿ã¾ãã 2ãã©ã¡ã¼ã¿ã®å¦ç¿ãã¼ã¿ã§ãã©ããã風ã«å¤å®ãããã®ãã表示ãã¦ãã¾ãã NNæ³ã§ã¯ãä¸çªè¿ãå¦ç¿ãã¼ã¿ã«ãã£ã¦å¤å®ãã¦ããã®ã§ãå¦ç¿ãã¼ã¿ã«é¢ãã¦ã¯æ£ããå¤å®çµæã«ãªãã¾ãããâ¦
ã¨ããããããã¿ã¼ã³èªèã®ä¸çªã®åºæ¬ã«ãªãNearestNeighborsæ³(NNæ³)ã§ãã£ã¦ã¿ã¾ãã NNæ³ã¯ãå¤å®ãããã¼ã¿ããå¦ç¿ã«ä½¿ã£ããã¼ã¿ã®ãã¡ã®ä¸çªè¿ããã®ã«åé¡ããæ¹æ³ã§ãã èªåã®åã§å¦ç¿ããã¦èªåã®åãå¤å®ããããªããããã§ãããããã¨ãæãâ¦
å層ãã¼ã»ãããã³ã ã¨ç·å½¢åé¢å¯è½ãªãã®ããå¦ç¿ã§ããªãã¨ãããã¨ã§ã3層ãã¼ã»ãããã³ã«ãã¦ããã¯ãããã²ã¼ã·ã§ã³ãªããã®ã§å¦ç¿ãããã¨æã£ã¦ãã¨ããããã³ã¼ããæ¸ããã®ã ãã©ãã¾ã ã¡ããã¨å¦ç¿ã§ãã¦ãªãï¼ï¼ æ©æ¢°å¦ç¿ã®å ¥éæ¸ã¯ããããèªâ¦
ã«ã¤ãã¦è³ªåããã¦ãã®ã§ãããTomcatããããæ©ä¼ããã®ã¨ãããªãã¦ãã®ã¾ã¾ã«ãã¦ãã¨ãããkenãããæãã¦ããã¾ããã http://www.okisoft.co.jp/esc/debugtool/netbeans6.html
å層ãã¼ã»ãããã³ã®å¦ç¿ãç´æ¥ãããªãã¦ã©ã°ã©ã³ã¸ã§ã®æªå®ä¹æ°ãæ±ããããã«ããã¨ç·å½¢ãµãã¼ããã¯ã¿ã¼ãã·ã³ã«ãªãã®ï¼
å層ãã¼ã»ãããã³ã ã¨ã3æåãããããå¦ç¿ã§ããªããã®ãªããããªããã¨ãæã£ã¦ã¿ã¾ããã å®ã®ã¨ããã©ããªãã§ãããï¼
é©å½ã«ãã£ã¦ã¿ãã®ã§ããããã¾ãå¦ç¿ã§ãã¾ããã»ã»ã» ã¡ããã¨èª¿ã¹ã¦ããã¹ããã ç»é¢ã«ãã¦ã¹ãªããã§æ°åãæ¸ãã¦ãä¸ã®æ°åãã¿ã³ã§å¦ç¿ãã¾ããä¸ã®å¤å®ãã¿ã³ãæ¼ãã¨ãæ¨æºåºåã«å¤å®çµæã表示ãã¾ãã ï¼æåãããã¾ã§ãªãèªèã§ããããã«ãªãâ¦
é¢æ°ã®æ¥µå°å¤ãæ±ããããã«ææ¥éä¸æ³ã使ã£ã¦ã¿ã¾ãã y=f(x)ã®æ¥µå°å¤ãæ±ããã¨ãã¦ãã¾ãé©å½ãªå¤aãã¨ãã¾ããf(x)ã®x=aã§ã®å¾®åf'(a)ãã¨ã£ãã¨ãããããæ£ã§ããã°aã®å¤ãæ¸ãããf'(a)ãè² ã§ããã°aã®å¤ãå¢ããã¨æ¥µå°å¤ã«è¿ã¥ãã¯ãã¨ããã®ããæâ¦
ä»åã¯ã空æ°æµæãããã¨ãã®ç©ä½ã®è»è·¡ãæãã¦ã¿ã¾ãããä¸ã®ããã°ã©ã ã§ã¯ãå®éã«ã¯ã¢ãã¡ã¼ã·ã§ã³ããã¦ã¾ãã â»è¿½è¨ 2023/4/30 åç»ãæ稿ãã¾ãã空æ°æµæãããä¸ã§ã¢ããæããã·ãã¥ã¬ã¼ã·ã§ã³https://t.co/zd6SCX8qE1 pic.twitter.com/IM2HbKomâ¦
å¾®åæ¹ç¨å¼ã解ãã«ã³ã²ã¯ãã¿æ³ã試ãã¦ã¿ã¾ãã ä»å㯠ã¨ããå¾®åæ¹ç¨å¼ã解ãã¦ã空æ°æµæãããèªç±è½ä¸ã®é度ãæ±ãã¦ã¿ã¾ããg=9.8ãk=0.01ã¨ãã¦ã¾ãã 空æ°æµæã«ãããé度ãä¸å®ã«ãªããã¨ããããã¾ãã ããã°ã©ã ä¸ãfuncã¡ã½ãããæ±ããå¾®åâ¦
対è§è¦ç´ ã®çµ¶å¯¾å¤ã大ããæ¹ç¨å¼ã ã¨åæããã¨ãããã¨ãªã®ã§ããããããã¼ã¿ãã§ã£ã¡ãããã public class LinearSystem { private static int getRandom(int n){ int i = (int)(Math.random() * n + 1) * ((Math.random() < .5) ? 1 : -1); return i; }â¦
ã¬ã¦ã¹ã»ã¶ã¤ãã«æ³ã¨ãã解ãæ¹ã ã ãã ã解ãåæãã¦ããã¾ãã 4w +1x +2y= 21 2w +5x -1y= 14 1w +3x -7y=-24 w(0)= 5.3 x(0)= 0.7 y(0)= 4.5 w(1)= 2.8 x(1)= 2.6 y(1)= 4.9 w(2)= 2.1 x(2)= 2.9 y(2)= 5.0 w(3)= 2.0 x(3)= 3.0 y(3)= 5.0 w(4)= 2.0 â¦
ããã http://ja.netbeans.org/nekobean/
åºæ¬çãªå¦çã¨ãã¦ã public class Regression { public static void main(String[] args){ //ãã¼ã¿ä½æ List<Point2D.Double> points = new ArrayList<Point2D.Double>(); double a = 10; double b = .7; int n = 100; Random r = new Random(); for(int i = 0; i < n; ++i){ double x = r</point2d.double></point2d.double>â¦
ãªãã¨ãªããæ£è¦åå¸ãã¼ã¿ãä½æã§ããããã«ãªã£ã¦ããã åç´ã«ä¹±æ°ã12å足ãã¦ãã ãã public class NormalDist { public static void main(String[] args){ //ã¨ããããåå¸ãä½æãã List<Double> l = new ArrayList<Double>(); for(int i = 0; i < 1000; ++i){ d</double></double>â¦
Random#nextGaussianããããããªããã
12åä¹±æ°ã足ãã¦ãã¨ããããããã£ã¦ãããããã double d = Math.sqrt(-2 * Math.log(Math.random())) * Math.sin(2 * Math.PI * Math.random()) + 6
å¸å ãæ±ããã¢ã«ã´ãªãºã ãæå¾ã«jarvisã®ãã¼ãã¨ããæ¹æ³ããã£ã¦ã¿ã¾ãã èãæ¹ã¨ãã¦ã¯ãã¾ãæåã«y座æ¨ãä¸çªå°ãããã®ãé¸ãã§ããã®ç¹ããã®è§åº¦ãä¸çªå°ããç¹ãé¸ãã§ããã¾ãã è§åº¦ã¯å ç©ã§æ±ãã¾ãã ãã®ã¢ã«ã´ãªãºã ã®å ´åãå¸å ä¸ã®é ç¹â¦
ååã®ã¢ã«ã´ãªãºã ã§ã¯ãç¹ã®æ°åã®ã«ã¼ããï¼éã«ãªã£ã¦ããã®ã§ãè¨ç®æéãO(n^4)ã«ãªã£ã¦ãã¾ãã¾ãã ã¨ãããã¨ã§ãå¥ã®ã¢ã«ã´ãªãºã ã ããã§ã¯ãä¸å´ã®å¸å ã¨ä¸å´ã®å¸å ãããã¦åå¾ãã¾ããä¸å´ã®å¸å ãã¨ãã«ã¯ãç¹ãX座æ¨ã§ã½ã¼ããã¦ããã¦ãé£â¦
ååã®ãããªã©ã³ãã ãªç¹ããã£ãã¨ãããã®ç¹ãå ¨é¨å«ãã§ã¸ãã¿ã®ãªãå¤è§å½¢ãä½æããã¨ããåé¡ã ã¢ã«ã´ãªãºã ã¨ãã¦ã¯ããä»ã®ç¹ã§ã§ããä¸è§å½¢ã«å«ã¾ãã¦ããå¸å ä¸ã®ç¹ãããªããã¨ããèãæ¹ã§ãå ¨é¨ã®çµã¿åããã®ä¸è§å½¢ã«ã¤ãã¦å ¨é¨ã®ç¹ãèµ°æ»ãâ¦