看板 FJU-STAT95B 關於我們 聯絡資訊
==================================開始複製===================================== #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)