Changeset 85 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
04/28/08 10:21:21 (16 years ago)
Author:
smidl
Message:

compilation and documantation fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r62 r85  
    2828protected: 
    2929        //! size = sum of sizes 
    30         int size; 
     30        int tsize; 
    3131        //! len = number of individual rvs 
    3232        int len; 
     
    5454        friend std::ostream &operator<< ( std::ostream &os, const RV &rv ); 
    5555 
    56         //! Return length (number of scalars) of the RV. 
    57         int count() const {return size;} ; 
     56        //! Return number of scalars in the RV. 
     57        int count() const {return tsize;} ; 
     58        //! Return length (number of entries) of the RV. 
     59        int length() const {return len;} ; 
    5860 
    5961        //TODO why not inline and later?? 
     
    6264        ivec find ( RV rv2 ); 
    6365        //! Add (concat) another variable to the current one 
    64         void add (const RV &rv2 ); 
     66        void add (const RV &rv2 ); 
    6567        //! Add (concat) another variable to the current one 
    6668        friend RV concat (const RV &rv1, const RV &rv2 ); 
     
    7880        //!access function 
    7981        Array<std::string>& _names(){return names;}; 
    80 }; 
    81  
    82  
    83 //! Class representing function $f(x)$ of variable $x$ represented by \c rv 
     82 
     83        //!access function 
     84        int id(int at){return ids(at);}; 
     85        //!access function 
     86        int size(int at){return sizes(at);}; 
     87        //!access function 
     88        int time(int at){return times(at);}; 
     89        //!access function 
     90        std::string name(int at){return names(at);}; 
     91}; 
     92 
     93 
     94//! Class representing function \f$f(x)\f$ of variable \f$x\f$ represented by \c rv 
    8495 
    8596class fnc { 
     
    90101        //!default constructor 
    91102        fnc(int dy):dimy(dy){}; 
    92         //! function evaluates numerical value of $f(x)$ at $x=cond$ 
     103        //! function evaluates numerical value of \f$f(x)\f$ at \f$x=\f$ \c cond 
    93104        virtual vec eval ( const vec &cond ) { 
    94105                return vec ( 0 ); 
     
    199210        void linkrvs ( RV &drv, RV &urv ); 
    200211 
    201         //! Moves from $t$ to $t+1$, i.e. perfroms the actions and reads response of the system. 
     212        //! Moves from \f$t\f$ to \f$t+1\f$, i.e. perfroms the actions and reads response of the system. 
    202213        void step(); 
    203214 
     
    242253\brief Conditional Bayesian Filter 
    243254 
    244 Evaluates conditional filtering density $f(rv|rvc,data)$ for a given \c rvc which is specified in each step by calling function \c condition. 
     255Evaluates conditional filtering density \f$f(rv|rvc,data)\f$ for a given \c rvc which is specified in each step by calling function \c condition. 
    245256 
    246257This is an interface class used to assure that certain BM has operation \c condition .