Save 37% off PRO during our Black Friday Sale! »

多分これが一番早いと思います

95d12ef3ae39f388be5a43b4788cb70e?s=47 Susisu
February 07, 2016

 多分これが一番早いと思います

JavaScript でデータ加工・統計コマンドを書いた話
http://connpass.com/event/25197/

95d12ef3ae39f388be5a43b4788cb70e?s=128

Susisu

February 07, 2016
Tweet

Transcript

  1. ガチソツケン たくさんਐ௙をग़せ!

  2. None
  3. ͨ ͘ ͞ Μ σ ʔ λ ͕ ग़ Δ

  4. Ճ ޻ ɾ ౷ ܭ ϓ ϩ ά ϥϜ Λ

    ຖ ճ ॻ ͖ ͨ ͘ ͳ ͍
  5. ϑ Ν Πϧ ͷ ಡ Έ ࠐ Έ σ ʔ

    λ ͷ ύʔε ͳ Μͯ ઈ ର ʹ ॻ ͖ ͨ ͘ ͳ ͍
  6. ߦ ͝ ͱ ͷ ܭ ࢉ ↓ a w k

  7. $ awk '{print 2*$1+$2}' foo.dat

  8. ૯ ࿨ ฏ ۉ ෼ ࢄ ૬ ؔ ෼ ෍

    e t c .
  9. $ awk '{sum+=$1}END{print sum}' foo.dat

  10. $ awk '{sum1+=$1;sumSq1+=$1*$1;sum2+= $2;sumSq2+=$2*$2}END{print sum1/NR, sqrt((sumSq1-sum1*sum1/NR)/(NR-1)), sum2/NR,sqrt((sumSq2-sum2*sum2/NR)/ (NR-1))}' foo.dat

  11. a w k w a rd

  12. None
  13. s u m $ 1

  14. $ npm install -g @susisu/est

  15. ߦ ͝ ͱ ͷ ܭ ࢉ + ྻ ͝ ͱ

    ͷ ܭ ࢉ  ↓ e s t
  16. $ est 'sum $1' foo.dat

  17. $ est '2*$1+$2' foo.dat

  18. $ est -t '[avg $1,stddev $1, avg $2,stddev $2]' foo.dat

  19. ▪ ෳ਺ͷσʔλϑΝΠϧͷಡΈࠐΈ ▪ ࣜͷ࠷దԽʢࣗಈϝϞԽʣ ▪ JavaScript ʹΑΔػೳ֦ு

  20. ໐ ͔ ͵ ͳ Β  ࡞ ͬͯ ͠ ·

    ͑  ΄ ͱ ͱ ͗ ͢ 2 0 1 6 ೥ 2 ݄ 7 ೔ ୈ 3 ճ O U C C LT ձ @ s u s i s u 2 4 1 3 ϝΧ
  21. ଟ ෼ ͜ Ε ͕  Ұ ൪ ૣ ͍

    ͱ ࢥ ͍ · ͢ 2 0 1 6 ೥ 2 ݄ 7 ೔ ୈ 3 ճ O U C C LT ձ @ s u s i s u 2 4 1 3