Changeset 8 for libBM.h

Show
Ignore:
Timestamp:
01/23/08 11:32:31 (16 years ago)
Author:
smidl
Message:

Kalmany funkci, PF nefunkci

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • libBM.h

    r7 r8  
    3939        //! default constructor 
    4040        RV ( ivec ids ); 
     41        //! Empty constructor will be set later 
     42        RV (); 
     43         
    4144        //! Printing output e.g. for debugging. 
    4245        friend std::ostream &operator<< ( std::ostream &os, const RV &rv ); 
    4346 
     47        //! Return length (number of scalars) of the RV. 
     48        int length(); 
    4449        //! Find indexes of another rv in self 
    4550        ivec rvfind(RV rv2); 
     
    5257        //! Select only variables at indeces ind 
    5358        RV operator()(ivec ind); 
     59        //! Generate new \c RV with \c time shifted by delta. 
     60        void t(int delta); 
    5461}; 
    5562 
     
    8289public: 
    8390        //! Returns the required moment of the epdf 
    84         virtual vec moment ( const int order = 1 ); 
     91//      virtual vec moment ( const int order = 1 ); 
     92        //! Returns a sample from the density, $x \sim epdf(rv)$ 
     93        virtual vec sample (){}; 
     94        virtual double eval(const vec &val){}; 
    8595}; 
    8696 
     
    94104 
    95105        //! Returns the required moment of the epdf 
    96         virtual fnc moment ( const int order = 1 ); 
     106//      virtual fnc moment ( const int order = 1 ); 
     107        //! Returns a sample from the density conditioned on \c cond, $x \sim epdf(rv|cond)$ 
     108        virtual vec samplecond (vec &cond, double lik){}; 
     109        virtual void condition (vec &cond){}; 
    97110}; 
    98111