Changeset 357 for library

Show
Ignore:
Timestamp:
06/08/09 02:15:30 (15 years ago)
Author:
mido
Message:

mnoho zmen:
1) presun FindXXX modulu do \system
2) zalozeni dokumentace \doc\local\library_structure.dox
3) presun obsahu \tests\UI primo do \tests
4) namisto \INSTALL zalozen \install.html, je to vhodnejsi pro uzivatele WINDOWS, a snad i obecne
5) snaha o predelani veskerych UI podle nove koncepce, soubory pmsm_ui.h, arx_ui.h, KF_ui.h, libDS_ui.h, libEF_ui.h a loggers_ui.h ponechavam
jen zdokumentacnich duvodu, nic by na nich jiz nemelo zaviset, a po zkontrolovani spravnosti provedenych uprav by mely byt smazany
6) predelani estimatoru tak, aby fungoval s novym UI konceptem
7) vytazeni tridy bdmroot do samostatneho souboru \bdm\bdmroot.h
8) pridana dokumentace pro zacleneni programu ASTYLE do Visual studia, ASTYLE pridan do instalacniho balicku pro Windows

Location:
library
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • library/estimator.cpp

    r281 r357  
    4848 */ 
    4949 
    50 #include <stat/libDS_ui.h> 
    51 #include <estim/arx_ui.h> 
     50#include "stat/libDS.h" 
     51#include "estim/arx.h" 
     52#include "user_info.h" 
     53#include "stat/loggers.h" 
    5254 
    5355using namespace bdm; 
     
    5961        else { 
    6062                cout << "Missing configuration file.\n Usage: \n $> estimator config_file.cfg"; 
    61                 abort(); 
     63                //abort(); 
    6264        } 
    63         UIFile F ( fname ); 
     65        fname = "arx_test.cfg"; 
     66        UI_File F ( fname ); 
    6467 
    65         logger* L; 
    66         ArxDS * DS; 
    67         BM* E; 
    68         int Ndat; 
    69  
    70         try { 
    71                 UIbuild ( F.lookup ( "logger" ),L ); 
    72                 UIbuild ( F.lookup ( "system" ),DS ); 
    73                 F.lookupValue ( "experiment.ndat",Ndat ); 
    74                 UIbuild ( F.lookup ( "estimator" ),E ); 
    75         } 
    76         catch UICATCH; 
     68        logger* L = UI::build<logger>( F, "logger"); 
     69        ArxDS * DS = UI::build<ArxDS>( F, "system" ); 
     70        BM* E = UI::build<BM>( F, "estimator" ); 
     71        int Ndat = F.lookupValue ( "experiment.ndat",Ndat ); 
    7772 
    7873        DS->log_add ( *L ); 
  • library/tutorial/arx_mex_test.cfg

    r278 r357  
    1111//estimation 
    1212estimator = { 
    13    type = "ARXest"; 
    14         y = {type="rv"; names=["y"]; }; 
    15         rgr = {type="rv"; 
    16                 names = ["y","y","y","u"]; 
     13   type = "ARX"; 
     14        y = {type="RV"; names=("y"); }; 
     15        rgr = {type="RV"; 
     16                names = ("y","y","y","u"); 
    1717                times = [-1, -2, -3, -1]; 
    1818        }; 
  • library/tutorial/arx_test.cfg

    r278 r357  
    11//Data generating system 
    22system = { 
    3         type = "ArxDS"; 
    4         y = {type="rv"; names=["y", "u"];}; 
    5         u = {type="rv"; names=[]; }; 
    6         rgr = {type="rv"; 
    7                 names = ["y","y","y","u"]; 
     3        class = "ArxDS"; 
     4        y = {class="RV"; names=("y", "u");}; 
     5        u = {class="RV"; names=(); }; 
     6        rgr = {class="RV"; 
     7                names = ("y","y","y","u"); 
    88                times = [-1, -2, -3, -1]; 
    99        }; 
    1010        //AR parameters 
    11         theta = [0.8, -0.3, 0.4, 1.0, 
    12                  0.0, 0.0, 0.0, 0.0]; 
     11        theta = (2,4,[0.8, -0.3, 0.4, 1.0, 
     12                      0.0, 0.0, 0.0, 0.0]); 
    1313        // offset 
    1414        offset = [0.0, 0.0]; 
    1515        //variance 
    16         r = [0.1, 0.0, 
    17              0.0, 1.0]; 
     16        r = (2,2,[0.1, 0.0, 
     17                 0.0, 1.0] ); 
    1818        // log also theta 
    1919        opt="L_theta"; 
     
    2222//store results 
    2323logger = { 
    24         type= "dirfilelog"; 
     24        class= "dirfilelog"; 
    2525        dirname = "exp/arx_ui"; 
    2626        maxlen = 1000; // 
     
    2929//estimation 
    3030estimator = { 
    31         type = "ARXest"; 
    32         y = {type="rv"; names=["y"]; }; 
    33         rgr = {type="rv"; 
    34                 names = ["y","y","y","u"]; 
     31        class = "ARX"; 
     32        y = {class="RV"; names=("y"); }; 
     33        rgr = {class="RV"; 
     34                names = ("y","y","y","u"); 
    3535                times = [-1, -2, -3, -1]; 
    3636        };