Changeset 125 for tests

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

drobnosti...

Location:
tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • 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: