作者weiching0323 (許惟妮)
看板FJU-STAT95B
標題[專業] 5/4無母數課堂筆記14:40-15:30
時間Tue May 4 14:55:15 2010
================================ 由下開始複製==================================
#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
推 abidog:威哥 05/04 15:13
→ lia5566:原PO正妹 05/04 15:13
推 ww770829:高手 你也應該考一下交大= = 05/04 15:14
→ weiching0323:哈哈 太抬舉我了.... 05/04 15:17
推 ww770829:不會啊~都是林高出生呀! 05/04 15:18
※ 編輯: weiching0323 來自: 140.136.161.83 (05/04 15:20)
→ weiching0323:哈哈 對耶 我們都是林高人!!!! 05/04 15:20
推 kevinlinpeii:差點忘了我也是林高人 = = 推!! 05/04 19:47