Changeset 19 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
02/16/08 15:12:24 (16 years ago)
Author:
smidl
Message:

Switch to CMake

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r18 r19  
    2525*/ 
    2626class RV { 
    27         int size,len; 
     27        //! size = sum of sizes 
     28        int size; 
     29        //! len = number of individual rvs 
     30        int len; 
    2831        ivec ids; 
    2932        ivec sizes; 
     
    4649 
    4750        //! Return length (number of scalars) of the RV. 
    48         int count() {return size;} 
     51        int count() const {return size;} ; 
    4952        //TODO why not inline and later?? 
    5053         
     
    6164        //! Generate new \c RV with \c time shifted by delta. 
    6265        void t(int delta); 
     66        //! generate a list of indeces, i.e. which  
     67        ivec indexlist(); 
    6368}; 
    6469 
     
    6671 
    6772 
    68 //! Class representing function of variables 
     73//! Class representing function $f(x)$ of variable $x$ represented by \c rv 
    6974class fnc { 
    7075        RV rv; 
     76public:  
     77        //! function evaluates numerical value of $f(x)$ at $x=cond$ 
     78        virtual vec eval(vec &cond){}; //Fixme: virtual? 
    7179}; 
    7280 
     
    93101//      virtual vec moment ( const int order = 1 ); 
    94102        //! Returns a sample from the density, $x \sim epdf(rv)$ 
    95         virtual vec sample (){}; 
     103        virtual vec sample ()=0; 
    96104        virtual double eval(const vec &val){}; 
    97105}; 
     
    119127*/ 
    120128class DS { 
     129protected: 
    121130        //!Observed variables, returned by \c getdata(). 
    122131        RV Drv;