作者weiching0323 (许惟妮)
看板FJU-STAT95B
标题[专业] 无母数课堂笔记14:40-15:00
时间Tue Apr 27 15:11:21 2010
前置作业:
打开一个记事本
输入以下资料
186 38 35
227 54 45
219 78 78
355 112 140
653 285 259
档名储存为RC.dat
并存於C:\\devcpp
===============================从以下开始复制=================================
#include <C:\devcpp\all.h>
double Chi2_CDF( double x )
{ return X2_CDF( x, 8 );
}
int main()
{
long int i, j;
srand((unsigned)time(NULL));
cout.setf(ios::fixed); cout.precision(10);
// $$$$$$$$ Start your program here $$$$$$$$$$$$$$$$$$$$$
Matrix X;
X.read_from_file("C:\\devcpp\\RC.dat",3);
X.print(0);
X.X2_test().print(3);
cout << "critical value alfa = 0.05" << endl;
cout << root_of(Chi2_CDF, 0.95, 8 ) << endl;
cout << "C.V. alfa = 0.005" << endl;
cout << root_of(Chi2_CDF, 0.995, 8) << endl;
// $$$$$$$ End of your program $$$$$$$$$$$$$$$$$$$$$$$$$
================================复制以上======================================
随时有最新进度
我会按E修改文章
请FOLLOW谢谢
--
▄ ▄ ████ ◤︵◣
六丁爱维尼* ▍ -◣ ◥██◤ ▊
˙ ▲ ◥ ◢█◣
▏ ◢███◣
◥ ╰◤ ▃▏ ▂ ◢█████◣
▋ /◥ ◤ ◥◤◥████◣
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.136.161.81
1F:推 abidog:原po是正妹 04/27 15:14
※ 编辑: weiching0323 来自: 140.136.161.81 (04/27 15:20)