Changeset 270 for tests/enorm_test.cpp

Show
Ignore:
Timestamp:
02/16/09 10:02:08 (15 years ago)
Author:
smidl
Message:

Changes in the very root classes!
* rv and rvc are no longer compulsory,
* samplecond does not return ll
* BM has drv

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/enorm_test.cpp

    r254 r270  
    3636        RV y ( "{y }" ); 
    3737 
    38         enorm<ldmat> E ( concat ( x,y ) ); 
     38        enorm<ldmat> E; 
     39        E.set_rv(concat(x,y)); 
    3940        E.set_parameters ( mu,R ); 
    4041        cout << "enorm mean value:" << E.mean() <<endl; 
     
    6566        mprod mEp ( A ); 
    6667 
    67         Smp=mEp.samplecond ( vec ( 0 ),ll,1000 ); 
     68        Smp=mEp.samplecond ( vec ( 0 ),1000 ); 
    6869        Emu = sum ( Smp,2 ) /N; 
    6970        Er = ( Smp*Smp.transpose() ) /N - outer_product ( Emu,Emu ); 
     
    7374         
    7475        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; 
    7677        cout << "composite: " << mEp.evallogcond(vec("0 0"),vec(0)) << endl; 
    7778}