Show
Ignore:
Timestamp:
01/27/12 18:09:09 (12 years ago)
Author:
sindj
Message:

Nevim jake zmeny. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/main.cpp

    r1413 r1423  
    3131const int max_model_order         = 2; 
    3232const double apriorno             = 0.01; 
    33 const int max_window_size         = 30; 
     33const int max_window_size         = 40; 
    3434const int utility_order           = 25; 
    3535const int prediction_time         = 30; 
    3636const double min_utility_argument = 0.001; 
    37 const double max_investment       = 10.0; 
     37const double max_investment       = 3.0; 
    3838const int sample_size                     = 5000; 
    39 const char* commodity                 = "BP\\"; 
     39const char* commodity                 = "TY\\"; 
    4040 
    4141/* 
     
    484484                        for(int window_size = max_window_size-1;window_size < max_window_size;window_size++) 
    485485                        { 
    486                                 models.push_back(new model((*model_type),true,true,window_size,0,&data_matrix));   // to su len konstruktory, len inicializujeme rozne typy 
    487                                 models.push_back(new model((*model_type),false,true,window_size,0,&data_matrix)); 
     486                                //if(model_type->size()<max_model_order) 
     487                                //{ 
     488                                        models.push_back(new model((*model_type),true,true,window_size,0,&data_matrix));   // to su len konstruktory, len inicializujeme rozne typy 
     489                                        models.push_back(new model((*model_type),false,true,window_size,0,&data_matrix)); 
     490                                //} 
    488491                                models.push_back(new model((*model_type),true,false,window_size,0,&data_matrix)); 
    489492                                models.push_back(new model((*model_type),false,false,window_size,0,&data_matrix));