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

Cele rozkopano a znovu poskladano za ucelem spravne integrace a nic - jen se mi podarilo doplnit faktor 1/2n. Sakris. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/main.cpp

    r1362 r1365  
    4848        HSZ hszItem = DdeCreateStringHandle(idInst, szItem, 0); 
    4949        HDDEDATA hData = DdeClientTransaction(NULL,0,hConv,hszItem,CF_TEXT,  
    50                                                                         XTYP_REQUEST,TIMEOUT_ASYNC , NULL); 
     50                                                                        XTYP_ADVSTART,TIMEOUT_ASYNC , NULL); //TIMEOUT_ASYNC 
    5151        if (hData==NULL) 
    5252        { 
     
    112112                        {                                
    113113                                V0  = 0.01 * eye(ar_components.size()+2); 
    114                                 V0(0,0) = 1; 
     114                                V0(0,0) = 0; 
    115115                                my_arx->set_constant(true);      
    116116                                 
     
    120120                                 
    121121                                V0  = 0.01 * eye(ar_components.size()+1); 
    122                                 V0(0,0) = 1; 
     122                                V0(0,0) = 0; 
    123123                                my_arx->set_constant(false);                             
    124124                                 
     
    207207        /* 
    208208        char szApp[] = "MT4"; 
    209         char szTopic[] = "ASK";  
    210         char szItem1[] = "EURUSD";       
     209        char szTopic[] = "BID";  
     210        char szItem1[] = "EURJPY";       
    211211 
    212212        //DDE Initialization 
     
    260260        Sleep(300000); 
    261261        Sleep(3000); 
    262         */ 
     262         
    263263 
    264264        /* 
     
    375375         
    376376 
     377         
    377378        vector<vector<string>> strings; 
    378379 
     
    410411        } 
    411412         
     413 
    412414        list<list<pair<int,int>>> model_types = model::possible_models_recurse(max_model_order,data_matrix.rows()); 
    413  
     415         
    414416        list<model*> models; 
    415417        for(list<list<pair<int,int>>>::iterator model_type = model_types.begin();model_type!=model_types.end();model_type++) 
     
    441443 
    442444                cout << "Updated." << endl; 
    443  
     445         
    444446                /* 
    445447                vector<vec> conditions; 
     
    652654                                        */ 
    653655 
     656                                         
    654657                                        ofstream myfile; 
    655658                                        char fstring[80];                                        
     
    670673                                         
    671674                                        myfile.close(); 
    672  
     675                        } 
    673676                                        /* 
    674677                                        myfile.open(f2string,ios::app); 
     
    706709 
    707710 
    708         } 
     711        //} 
    709712 
    710713