Changeset 660 for library/bdm/mex/mex_BM.h
- Timestamp:
- 10/15/09 00:04:30 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/mex/mex_BM.h
r599 r660 15 15 using namespace bdm; 16 16 17 //! epdf with functions implemented in matlab 17 18 class mexEpdf: public epdf{ 18 19 protected: 20 //! prefix of matlab functions 19 21 string name; 22 //! pointer to storage structure 20 23 mxArray *data; 21 24 public: … … 40 43 UIREGISTER(mexEpdf); 41 44 45 //! BM with functions implemented in matlab 42 46 class mexBM: public BM{ 43 47 protected : 48 //! prefix of matlab functions 44 49 string name; 50 //! internal estimator 45 51 mexEpdf est; 52 //! mxArray with attributes of this object 46 53 mxArray *data; 47 54 public: 48 55 mexBM() {} 49 56 57 //! duplicate internal data pointer? 50 58 mxArray *get_data() { 51 59 //mexCallMATLAB(0, NULL, 1, &data, "dump"); … … 81 89 //mexCallMATLAB(0, NULL, 1, &data, "dump"); 82 90 } 91 //! return correctly typed posterior (covariant return) 83 92 const mexEpdf& posterior() const { 84 93 return est; 85 } //tohle by melo zustat!!86 const mexEpdf* _e() const {87 return &est;88 94 } //tohle by melo zustat!! 89 95 };