Changeset 270 for tests/enorm_test.cpp
- Timestamp:
- 02/16/09 10:02:08 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/enorm_test.cpp
r254 r270 36 36 RV y ( "{y }" ); 37 37 38 enorm<ldmat> E ( concat ( x,y ) ); 38 enorm<ldmat> E; 39 E.set_rv(concat(x,y)); 39 40 E.set_parameters ( mu,R ); 40 41 cout << "enorm mean value:" << E.mean() <<endl; … … 65 66 mprod mEp ( A ); 66 67 67 Smp=mEp.samplecond ( vec ( 0 ), ll,1000 );68 Smp=mEp.samplecond ( vec ( 0 ),1000 ); 68 69 Emu = sum ( Smp,2 ) /N; 69 70 Er = ( Smp*Smp.transpose() ) /N - outer_product ( Emu,Emu ); … … 73 74 74 75 cout << endl << " test of pdflog at zero "<<endl; 75 cout << "original: " << exp(E.evallog(vec("0 0"))) <<endl;76 cout << "original: " << E.evallog(vec("0 0")) <<endl; 76 77 cout << "composite: " << mEp.evallogcond(vec("0 0"),vec(0)) << endl; 77 78 }