Changeset 125

Show
Ignore:
Timestamp:
06/20/08 11:16:53 (16 years ago)
Author:
smidl
Message:

drobnosti...

Files:
5 modified

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r118 r125  
    2323ELSE() 
    2424        #This is for UNIX makefile which does only one release at a time. 
    25         SET(CMAKE_BUILD_TYPE Debug) 
     25#       SET(CMAKE_BUILD_TYPE Debug) 
    2626        SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall") 
    2727ENDIF(WIN32) 
  • bdm/estim/libPF.h

    r115 r125  
    147147        double WL = 0.0; 
    148148 
     149cout << est.mean(); 
     150 
    149151        for ( i=0;i<n;i++ ) { 
    150152                //generate new samples from paramater evolution model; 
     
    157159        } 
    158160 
    159         if ( true ) { 
     161cout << min(lls) << "'" << max(lls)<<endl; 
     162 
     163        if ( false) { 
    160164                for ( i=0;i<n;i++ ) { 
    161165                        WL = _w ( i ) *exp ( llsP ( i ) ); //using old weights! 
     
    199203                }; 
    200204                cout << '.'; 
     205cout << est.mean() << endl;              
    201206        } 
    202207} 
  • pmsm/pmsm_mix.cpp

    r117 r125  
    7979//      cout << Eevol.sample() <<endl; 
    8080 
    81         mepdf evolQR(rQR,rQR,&Eevol); 
     81        mepdf evolQR(rQR,rQR,&Ucom); 
    8282        MPF<EKFful_unQR> M ( rx,rQR, evolQR, evolQR, Npar, EKU ); 
     83        M.set_est ( evolQR._epdf() ); 
    8384 
    8485        epdf& Efix_ep = Efix._epdf(); 
  • tests/CMakeLists.txt

    r122 r125  
    2929add_executable (loggers_test loggers_test.cpp) 
    3030target_link_libraries (loggers_test ${BdmLibs}) 
     31 
     32add_executable (blas_test blas_test.cpp) 
     33target_link_libraries (blas_test ${BdmLibs}) 
    3134 
    3235add_executable (test0 test0.cpp) 
  • tests/testSmp.cpp

    r115 r125  
    7878        disp(eMix.mean(),zeros(2),Smp); 
    7979 
    80         cout << "======= MMix_triv ======== " << endl; 
    81         mepdf mMix(rv,rv,&eMix); 
     80        cout << "======= MEpdf ======== " << endl; 
     81        mepdf meMix(rv,rv,&eMix); 
     82         
     83        Smp = meMix.samplecond(mu0,lik,N); 
     84        disp(eMix.mean(),zeros(2),Smp); 
     85 
     86        cout << "======= MMix ======== " << endl; 
     87        mmix mMix(rv,rv); 
     88        Array<mpdf*> mComs(2); 
     89        mComs(0) = &mG; 
     90        eN.set_mu(vec_2(0.0,0.0)); 
     91        mepdf mEnorm(rv,rv,&eN); 
     92        mComs(1) = &mEnorm; 
     93        mMix.set_parameters(vec_2(0.5,0.5),mComs); 
    8294         
    8395        Smp = mMix.samplecond(mu0,lik,N); 
    84         disp(eMix.mean(),zeros(2),Smp); 
     96        disp(mMix._epdf().mean(),zeros(2),Smp); 
    8597 
    8698        //Exit program: