Changeset 115 for bdm/stat/libBM.h
- Timestamp:
- 05/23/08 18:47:11 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.h
r102 r115 171 171 virtual mat samplecond ( vec &cond, vec &ll, int N ) { 172 172 this->condition ( cond ); 173 mat temp ( rv.count(),N ); vec smp ( rv.count() ); for ( int i=0;i<N;i++ ) {smp=ep->sample() ;temp.set_col ( i, smp );ll ( i ) =ep->evalpdflog ( smp );} 173 mat temp ( rv.count(),N ); vec smp ( rv.count() ); 174 for ( int i=0;i<N;i++ ) {smp=ep->sample() ;temp.set_col ( i, smp );ll ( i ) =ep->evalpdflog ( smp );} 174 175 return temp; 175 176 }; … … 189 190 //!access function 190 191 epdf& _epdf() {return *ep;} 192 }; 193 194 /*! \brief Unconditional mpdf, allows using epdf in the role of mpdf. 195 196 WARNING: the class does not check validity of the \c ep pointer nor its existence. 197 */ 198 class mepdf : public mpdf { 199 public: 200 //!Default constructor 201 mepdf ( const RV &rv, const RV &rvc, epdf* em ) :mpdf ( rv,rvc ) {ep=em;}; 191 202 }; 192 203