Changeset 11 for testPF.cpp

Show
Ignore:
Timestamp:
01/25/08 10:31:08 (16 years ago)
Author:
smidl
Message:

resampling in PF + initial port of functions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • testPF.cpp

    r8 r11  
    1919        ldmat R("1"); 
    2020         
     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        /* 
    2133        mlnorm<ldmat> obs(x,xm,A,R); 
    2234        mlnorm<ldmat> par(y,x,A,R); 
    2335         
    2436        TrivialPF TPF(obs,par,10); 
     37        */ 
    2538        //Exit program: 
    2639        return 0;