Do the Right Thing

連結清單

  • MIB
  • Twitter
  • Playmate
  • 音悅
  • 英文筆記

關於我自己

我的相片
Red
檢視我的完整簡介

網誌存檔

  • ►  2016 (2)
    • ►  9月 (2)
  • ►  2015 (1)
    • ►  1月 (1)
  • ►  2014 (2)
    • ►  12月 (2)
  • ►  2013 (8)
    • ►  9月 (1)
    • ►  1月 (7)
  • ►  2012 (37)
    • ►  12月 (7)
    • ►  11月 (6)
    • ►  10月 (1)
    • ►  9月 (1)
    • ►  8月 (1)
    • ►  7月 (2)
    • ►  6月 (2)
    • ►  5月 (2)
    • ►  4月 (3)
    • ►  3月 (9)
    • ►  2月 (1)
    • ►  1月 (2)
  • ►  2011 (24)
    • ►  12月 (6)
    • ►  11月 (2)
    • ►  10月 (1)
    • ►  9月 (2)
    • ►  7月 (1)
    • ►  6月 (1)
    • ►  5月 (1)
    • ►  4月 (1)
    • ►  3月 (6)
    • ►  2月 (3)
  • ▼  2010 (23)
    • ►  11月 (2)
    • ►  9月 (2)
    • ►  8月 (1)
    • ▼  7月 (10)
      • [Perl] Perl Quick Reference
      • [Drug] 3 different biological action of a drug
      • [R] 階乘
      • 本山語錄
      • [R]圖形配置
      • [R]基本運算
      • [SQL]新增欄位資料
      • [SQL]交集Intersection
      • [PHP]檔案太大無法匯入phpMyAdmin
      • [NGS] Genome Analyzer (Solexa)
    • ►  6月 (1)
    • ►  5月 (3)
    • ►  4月 (4)

2010年7月29日 星期四

[R] 階乘

階乘-factorial: 是所有小於或等於該數的正整數的積。
自然數n的階乘寫作n!

(1) factorial(x)
x! = factorial(x) = 1 * 2 * .. * x = Gamma(1 + x)
lfactorial(x)

(2) The binomial distribution with size = n and prob = p has density
p(x) = choose(n,x) p^x (1-p)^(n-x)

(3) combn
張貼者: Red 於 下午2:06

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

搜尋此網誌