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/arx_elem_test.cpp

    r254 r270  
    11#include <estim/arx.h> 
    2 #include <stat/libEF.h> 
    32using namespace bdm; 
    4  
    5 //These lines are needed for use of cout and endl 
    6 using std::cout; 
    7 using std::endl; 
    83 
    94int main() { 
     
    116        //Test constructor 
    127        mat V0 = 0.00001*eye(2); V0(0,0)= 0.1; // 
    13         RV thr("{th r }"); 
    14         ARX Ar(thr, V0, -1.0); 
     8        ARX Ar; Ar.set_statistics(1, V0, -1.0); 
    159                                 
    1610        mat mu(1,1); 
     
    3933        X2.set_row(0,x); 
    4034         
    41         mlstudent* Ap = Ar.predictor_student(RV("{y }"),RV("{1 }")); 
     35        mlstudent* Ap = Ar.predictor_student(); 
    4236        vec Ap_x=Ap->evallogcond_m(X,vec_1(1.0)); 
    4337        vec ll_x = Ar.logpred_m(X2); 
    4438         
    45         cout << "normalize : " << xstep*sum(Ap_x) << endl; 
     39        cout << "normalize : " << xstep*sum(exp(Ap_x)) << endl; 
    4640        cout << "normalize : " << xstep*sum(exp(ll_x)) << endl; 
    4741