作者weiching0323 (许惟妮)
看板FJU-STAT95B
标题[专业] 6/15无母数课堂笔记14:40-15:30
时间Tue Jun 15 14:55:23 2010
==================================开始复制=====================================
#include <C:\devcpp\all.h>
double like( double N )
{ return hyp_prob( 4, N, 50, 40 );
}
double D_like( double N )
{ double D = 0.0001;
return(like(N+D)-like(N-D))/(2.0*D);
}
int main()
{
long int i, j;
srand((unsigned)time(NULL));
cout.setf(ios::fixed); cout.precision(10);
// $$$$$$$$ Start your program here $$$$$$$$$$$$$$$$$$$$$
/* Univar x = time_axis(100,1500,1);
multi_dis G(x);
G.push_function(like);
G.push_function(D_like);
G.print_to_file("c:\\devcpp\\like.dat",5);
*/
cout << " nonparametric MLE = " << endl;
cout << root_of(D_like, 0 , 100) << endl;
// $$$$$$$ End of your program $$$$$$$$$$$$$$$$$$$$$$$$$
cin.get();
return 0;
}
====================================复制结束===================================
--
▄ ▄ ████ ◤︵◣
六丁爱维尼* ▍ -◣ ◥██◤ ▊
˙ ▲ ◥ ◢█◣
▏ ◢███◣
◥ ╰◤ ▃▏ ▂ ◢█████◣
▋ /◥ ◤ ◥◤◥████◣
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.136.161.81
※ 编辑: weiching0323 来自: 140.136.161.81 (06/15 15:12)