2013-03-01ãã1ã¶æéã®è¨äºä¸è¦§
Rã§æ¡ä»¶ä»ããã¼ã»ã³ã¿ã¤ã«è§£æ>> wakekijyun_d function (x, y, kugiri = 32, minmin = 1, last = F,points=F,pch=1,xlab="x",ylab="y"){ d st fi if (minmin != 1) { length2 for (i in 1:length(st)) { xb2 = st[i] & x length2[i] } f12345 = minmin))) â¦
ã·ã§ã«ã¹ã¯ãªããã§é£çªãã¡ã¤ã«ããæãã¦ãããã®ãããã 1.csv 2.csv ⦠ls | grep -v name |grep csv | sort -gr | sed "s/.csv//g" | awk '{print $1,$1-tmp;tmp=$1}' | awk '$2!=-1{for(i=1;i<-$2;i++){print $1+i}}'
scalaã§ã¡ã¢ãªâãªã¼ãã¼ï¼ scalaã®java.lang.OutOfMemoryError: Java heap space ã®å¯¾å¦æ³ï¼ ãã¼ãã®æ大å¤ããªãã·ã§ã³ã§æå® scala -J-Xmx1024m xxxx.scala scala -J-Dfile.encoding=UTF-8 -J-Xmx1500m -deprecation xxxx.scala http://www.javaroad.jp/fâ¦
awkã§ã©ã³ãã ãµã³ãã« awk 'BEGIN{b[0]=2;b[1]=3;b[2]=4;srand();for(i=0;i ã¨ãã»ã³ã¹ï¼ awk 'BEGIN{b[0]=2;b[1]=3;b[2]=4;srand();print b[int(length(b)*rand())]}' ãã£ã¨ã¨ãã»ã³ã¹ï¼ int(length(b)*rand())
scalaã§ãã¡ã¤ã«åºå import java.io.PrintWriter object test{ def main(args: Array[String]){ var p=new PrintWriter("test.txt") p.println("hello\n"); p.println("java\n") p.flush p.close } }
ArrayBufferã¯ã©ã¹ãç¨ããï¼ import scala.collection.mutable.ArrayBuffer object ArrayTest{ def main(args:Array[String])={ var a=new ArrayBuffer[Double] a.append(1.0) a.append(2.0) a.append(7.0) //a+=(7.0)ãåãï¼ println(a(1)); a.foreach{prâ¦
ã¿ã¹ã¯ï¼ ã©ã³ãã ã¦ã©ã¼ã¯ãï¼ã¤çºçããã¦ï¼ããããããã¤ãã®æéã¹ã±ã¼ã«ã§boxå¹³åãã¨ãï¼ åæéã¹ã±ã¼ã«ã§ã°ã¬ã³ã¸ã£ã¼å ææ¤å®ããï¼ãã¹ã¦ã®æéã¹ã±ã¼ã«ã§ãã£ã¨ãå°ããå¤ã調ã¹ãï¼ ä¸è¨ãï¼ï¼ï¼åç¹°ãè¿ãï¼ è¨æ¸¬çµæ R 369.96ç§ scala 6.655â¦
ã°ã¬ã³ã¸ã£ã¼å ææ¤å®ï¼ 注æäºé ï¼æ¬å½ã®å æé¢ä¿ã§ãªããã¨ã«æ³¨æã ä¾ãã°ï¼ç²¾åº¦ã®ãã天æ°äºå ±ã¨å¤©æ°ã¯å æé¢ä¿ããã¨å¤å®ãã¦ãã¾ãï¼ ã¾ãï¼ç·å½¢ã¢ãã«ãä»®å®ããã®ã§ï¼ã¢ãã«ãéç·å½¢ã®å ´åã¯æ£ç¢ºã§ã¯ãªãï¼ ã¢ã¤ãã¢ï¼ xâyã®ç¸é¢ãèããï¼ y(t+1)â¦
http://winnie.kuis.kyoto-u.ac.jp/~murase/howto/linux.xmlãã ~/.Xresourcesã«ä»¥ä¸ã®ããã«æ¸ãã Tgif.FontSizes: 8 9 10 11 12 13 14 15 16 17 18 19 \ 20 22 24 26 28 30 32 34 36 38 40 42 \ 44 46 48 52 56 60 64 70 74 78 82 86 \ 90 94 100 120 14â¦
ãã¼ãããªãããªã¹ãâArrayãå¾®å¦â¦ import scala.util.Random j=Random.shuffle(diff_data2.toList).toArray ã©ã³ãã ã¦ã©ã¼ã¯ var tmp=0.0; var rand1=(0 to data2.length).map{b=> tmp=tmp+Random.nextGau ssian();tmp}
var tmp=a(0);a.map{b=>var c=b-tmp;tmp=b;c}.slice(1,a.length) ãããªæã scala> a res18: Array[Int] = Array(1, 2, 3, 4, 7)scala> tmp=a(0);a.map{b=>var c=b-tmp;tmp=b;c}.slice(1,a.length) tmp: Int = 7 res19: Array[Int] = Array(1, 1, 1, 3)