Changeset 22 for bdm/stat/libBM.h
- Timestamp:
- 02/18/08 17:50:37 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.h
r19 r22 73 73 //! Class representing function $f(x)$ of variable $x$ represented by \c rv 74 74 class fnc { 75 RV rv; 75 protected: 76 int dimy; 76 77 public: 77 78 //! 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;} 79 82 }; 80 83 … … 85 88 double ll; 86 89 90 //!Default constructor 91 BM(){ll=0;}; 92 87 93 /*! \brief Incremental Bayes rule 88 94 @param dt vector of input data … … 100 106 //! Returns the required moment of the epdf 101 107 // 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$ 103 109 virtual vec sample ()=0; 110 //! Compute probability of argument \c val 104 111 virtual double eval(const vec &val){}; 105 112 };