Show
Ignore:
Timestamp:
05/10/11 18:59:52 (13 years ago)
Author:
sindj
Message:

Jupiijahou, snad se podarilo dobojovat s normalizacnim faktorem. Pridany vsechny potrebne logaritmy do log_nc. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/main.cpp

    r1365 r1366  
    112112                        {                                
    113113                                V0  = 0.01 * eye(ar_components.size()+2); 
    114                                 V0(0,0) = 0; 
     114                                V0(0,0) = 1; 
    115115                                my_arx->set_constant(true);      
    116116                                 
     
    120120                                 
    121121                                V0  = 0.01 * eye(ar_components.size()+1); 
    122                                 V0(0,0) = 0; 
     122                                V0(0,0) = 1; 
    123123                                my_arx->set_constant(false);                             
    124124                                 
     
    378378        vector<vector<string>> strings; 
    379379 
    380         char* file_string = "c:\\data";  
     380        char* file_string = "c:\\dataCDClosePercDiff";  
    381381 
    382382        char dfstring[80]; 
     
    417417        for(list<list<pair<int,int>>>::iterator model_type = model_types.begin();model_type!=model_types.end();model_type++) 
    418418        { 
    419                 models.push_back(new model((*model_type),true,false,30,0,&data_matrix)); 
    420                 models.push_back(new model((*model_type),false,false,30,0,&data_matrix)); 
     419                models.push_back(new model((*model_type),true,true,100,0,&data_matrix)); 
     420                models.push_back(new model((*model_type),false,true,100,0,&data_matrix)); 
     421                models.push_back(new model((*model_type),true,false,100,0,&data_matrix)); 
     422                models.push_back(new model((*model_type),false,false,100,0,&data_matrix)); 
    421423        } 
    422424         
    423425        mat result_lognc; 
    424426 
    425         for(int time = max_model_order;20;time++) //time<data_matrix.cols() 
     427        for(int time = max_model_order;time<data_matrix.cols();time++) //time<data_matrix.cols() 
    426428        {        
    427429                vec cur_res_lognc;