Changeset 649

Show
Ignore:
Timestamp:
10/05/09 00:18:36 (15 years ago)
Author:
smidl
Message:

corrections in arx and ctrl_base

Location:
library/bdm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/design/ctrlbase.h

    r598 r649  
    118118        //! \note advanced Controllers will probably include estimator as their internal attribute (e.g. dual controllers) 
    119119        class Controller : public root { 
     120                protected: 
    120121                //! identifier of the system output; 
    121122                RV yrv; 
     
    124125                //! description of data needed for \c ctrlaction , required for automatic connection to DS 
    125126                RV drv; 
     127                //! vector of logger IDs 
     128                ivec LIDs; 
    126129                public: 
    127130                        //! function processing new observations and adapting control strategy accordingly 
     
    140143                        //! access function 
    141144                        const RV& _drv() {return drv;} 
     145                        //! register this controller with given datasource under name "name" 
     146                        virtual void log_add ( logger &L, const string &name = "" ) { } 
     147                        //! write requested values into the logger 
     148                        virtual void logit ( logger &L ) { } 
     149                         
    142150        }; 
    143151                         
  • library/bdm/estim/arx.h

    r639 r649  
    7676                frg = frg0; 
    7777        } 
     78        void set_constant ( bool const0 ) { 
     79                have_constant=const0; 
     80        } 
    7881        void set_statistics ( int dimx0, const ldmat V0, double nu0 = -1.0 ) { 
    7982                est.set_parameters ( dimx0, V0, nu0 );