Changeset 11 for testPF.cpp
- Timestamp:
- 01/25/08 10:31:08 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
testPF.cpp
r8 r11 19 19 ldmat R("1"); 20 20 21 22 vec ptc = randn(10); 23 vec w = exp(-0.5*(pow(ptc,2))/0.2); 24 25 cout << "p:" << ptc << endl; 26 cout << "w:" << w << endl; 27 28 PF pf(w); 29 ivec ind = pf.resample(); 30 31 cout << ind << endl; 32 /* 21 33 mlnorm<ldmat> obs(x,xm,A,R); 22 34 mlnorm<ldmat> par(y,x,A,R); 23 35 24 36 TrivialPF TPF(obs,par,10); 37 */ 25 38 //Exit program: 26 39 return 0;