Changeset 115 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
05/23/08 18:47:11 (16 years ago)
Author:
smidl
Message:

zmena mmix_triv na mepdf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r102 r115  
    171171        virtual mat samplecond ( vec &cond, vec &ll, int N ) { 
    172172                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 );} 
    174175                return temp; 
    175176        }; 
     
    189190        //!access function 
    190191        epdf& _epdf() {return *ep;} 
     192}; 
     193 
     194/*! \brief Unconditional mpdf, allows using epdf in the role of mpdf.  
     195 
     196WARNING: the class does not check validity of the \c ep pointer nor its existence. 
     197*/ 
     198class mepdf : public mpdf { 
     199public: 
     200        //!Default constructor 
     201        mepdf ( const RV &rv, const RV &rvc, epdf* em ) :mpdf ( rv,rvc ) {ep=em;}; 
    191202}; 
    192203