作者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
1F:推 abidog:威哥 05/04 15:13
2F:→ lia5566:原PO正妹 05/04 15:13
3F:推 ww770829:高手 你也应该考一下交大= = 05/04 15:14
4F:→ weiching0323:哈哈 太抬举我了.... 05/04 15:17
5F:推 ww770829:不会啊~都是林高出生呀! 05/04 15:18
※ 编辑: weiching0323 来自: 140.136.161.83 (05/04 15:20)
6F:→ weiching0323:哈哈 对耶 我们都是林高人!!!! 05/04 15:20
7F:推 kevinlinpeii:差点忘了我也是林高人 = = 推!! 05/04 19:47