Legend:
- Unmodified
- Added
- Removed
-
libBM.h
r7 r8 39 39 //! default constructor 40 40 RV ( ivec ids ); 41 //! Empty constructor will be set later 42 RV (); 43 41 44 //! Printing output e.g. for debugging. 42 45 friend std::ostream &operator<< ( std::ostream &os, const RV &rv ); 43 46 47 //! Return length (number of scalars) of the RV. 48 int length(); 44 49 //! Find indexes of another rv in self 45 50 ivec rvfind(RV rv2); … … 52 57 //! Select only variables at indeces ind 53 58 RV operator()(ivec ind); 59 //! Generate new \c RV with \c time shifted by delta. 60 void t(int delta); 54 61 }; 55 62 … … 82 89 public: 83 90 //! 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){}; 85 95 }; 86 96 … … 94 104 95 105 //! 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){}; 97 110 }; 98 111