[專業] 5/4無母數課堂筆記14:40-15:30

看板FJU-STAT95B作者 (許惟妮)時間15年前 (2010/05/04 14:55), 編輯推噓4(403)
留言7則, 5人參與, 最新討論串1/1
================================ 由下開始複製================================== #include <C:\devcpp\all.h> int main() { long int i, j; srand((unsigned)time(NULL)); cout.setf(ios::fixed); cout.precision(10); // $$$$$$$$ Start your program here $$$$$$$$$$$$$$$$$$$$$ double x[12] = {0,1,1,0,-2,6,7,7,4,-3,9,14}; Univar X(12,x); double ind[12] = {1,1,1,1,1,0,0,0,0,0,0,0}; Univar IND(12,ind); IND.print(0); double C = 0.0; Univar T1; do { T1.push_back( X * IND ); C++; }while(prev_permutation(IND.begin(),IND.end())); cout << "number of permutation is " << C << endl; cout << exp(ln_comb(12,5)) << endl; T1.freq_dist(); cout << "P_value = " << endl; cout.precision(4); cout << 2.0*T1.emp_CDF(0) << endl; // $$$$$$$ End of your program $$$$$$$$$$$$$$$$$$$$$$$$$ =====================================複製結束================================== 請隨時follow最新進度 -- ▄ ▄ ████ 六丁愛維尼* ◥██◤ ˙ ◢███◣ ◤ ▃ ◢█████◣ / ◤◥████◣ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.161.83

05/04 15:13, , 1F
威哥
05/04 15:13, 1F

05/04 15:13, , 2F
原PO正妹
05/04 15:13, 2F

05/04 15:14, , 3F
高手 你也應該考一下交大= =
05/04 15:14, 3F

05/04 15:17, , 4F
哈哈 太抬舉我了....
05/04 15:17, 4F

05/04 15:18, , 5F
不會啊~都是林高出生呀!
05/04 15:18, 5F
※ 編輯: weiching0323 來自: 140.136.161.83 (05/04 15:20)

05/04 15:20, , 6F
哈哈 對耶 我們都是林高人!!!!
05/04 15:20, 6F

05/04 19:47, , 7F
差點忘了我也是林高人 = = 推!!
05/04 19:47, 7F
文章代碼(AID): #1BtyJMoG (FJU-STAT95B)