Changeset 118 for bdm/stat/libBM.h
- Timestamp:
- 05/27/08 11:00:39 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.h
r115 r118 167 167 // virtual fnc moment ( const int order = 1 ); 168 168 //! Returns a sample from the density conditioned on \c cond, \f$x \sim epdf(rv|cond)\f$. \param cond is numeric value of \c rv \param ll is a return value of log-likelihood of the sample. 169 virtual vec samplecond ( vec &cond, double &ll ) {this->condition ( cond );vec temp= ep->sample();ll=ep->evalpdflog ( temp );return temp;}; 169 virtual vec samplecond ( vec &cond, double &ll ) {this->condition ( cond ); 170 vec temp= ep->sample(); 171 ll=ep->evalpdflog ( temp );return temp;}; 170 172 //! Returns N samples from the density conditioned on \c cond, \f$x \sim epdf(rv|cond)\f$. \param cond is numeric value of \c rv \param ll is a return value of log-likelihood of the sample. 171 173 virtual mat samplecond ( vec &cond, vec &ll, int N ) {