Changeset 22 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
02/18/08 17:50:37 (16 years ago)
Author:
smidl
Message:

upravy Kalmana

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r19 r22  
    7373//! Class representing function $f(x)$ of variable $x$ represented by \c rv 
    7474class fnc { 
    75         RV rv; 
     75protected: 
     76        int dimy; 
    7677public:  
    7778        //! function evaluates numerical value of $f(x)$ at $x=cond$ 
    78         virtual vec eval(vec &cond){}; //Fixme: virtual? 
     79        virtual vec eval(const vec &cond){}; //Fixme: virtual? 
     80        //! access function 
     81        int _dimy()const{return dimy;} 
    7982}; 
    8083 
     
    8588        double ll; 
    8689 
     90        //!Default constructor 
     91        BM(){ll=0;}; 
     92         
    8793        /*! \brief Incremental Bayes rule 
    8894        @param dt vector of input data 
     
    100106        //! Returns the required moment of the epdf 
    101107//      virtual vec moment ( const int order = 1 ); 
    102         //! Returns a sample from the density, $x \sim epdf(rv)$ 
     108        //! Returns a sample from the density, \f$x \sim epdf(rv)\f$ 
    103109        virtual vec sample ()=0; 
     110        //! Compute probability of argument \c val 
    104111        virtual double eval(const vec &val){}; 
    105112};