Changeset 214 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
11/27/08 23:31:48 (15 years ago)
Author:
smidl
Message:

debug asserts for infinite likelihoods

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r211 r214  
    232232 
    233233        //! Shortcut for conditioning and evaluation of the internal epdf. In some cases,  this operation can be implemented efficiently. 
    234         virtual double evallogcond ( const vec &dt, const vec &cond ) {this->condition ( cond );return ep->evallog ( dt );}; 
     234        virtual double evallogcond ( const vec &dt, const vec &cond ) {double tmp; this->condition ( cond );tmp = ep->evallog ( dt );           it_assert_debug(std::isfinite(tmp),"Infinite value"); return tmp; 
     235        }; 
    235236 
    236237        //! Matrix version of evallogcond