Changeset 565 for library/bdm/stat/emix.h
- Timestamp:
- 08/19/09 16:54:24 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/emix.h
r559 r565 62 62 //prepare data structures 63 63 if ( copy ) { 64 it_error ( "todo" );65 destroynom = true;64 bdm_error ( "todo" ); 65 // destroynom = true; 66 66 } else { 67 67 nom = nom0; 68 68 destroynom = false; 69 69 } 70 it_assert_debug ( rvc.length() > 0, "Makes no sense to use this object!" );70 bdm_assert_debug ( rvc.length() > 0, "Makes no sense to use this object!" ); 71 71 72 72 // build denominator … … 156 156 } 157 157 double tmp = log ( sum ); 158 it_assert_debug ( std::isfinite ( tmp ), "Infinite" );158 bdm_assert_debug ( std::isfinite ( tmp ), "Infinite" ); 159 159 return tmp; 160 160 }; … … 387 387 for ( int i = 0; i < epdfs.length(); i++ ) { 388 388 independent = rv.add ( epdfs ( i )->_rv() ); 389 it_assert_debug ( independent == true, "eprod:: given components are not independent." );389 bdm_assert_debug ( independent, "eprod:: given components are not independent." ); 390 390 } 391 391 dim = rv._dsize(); … … 441 441 tmp += epdfs ( i )->evallog ( dls ( i )->pushdown ( val ) ); 442 442 } 443 it_assert_debug ( std::isfinite ( tmp ), "Infinite" );443 bdm_assert_debug ( std::isfinite ( tmp ), "Infinite" ); 444 444 return tmp; 445 445 } 446 446 //!access function 447 447 const epdf* operator () ( int i ) const { 448 it_assert_debug ( i < epdfs.length(), "wrong index" );448 bdm_assert_debug ( i < epdfs.length(), "wrong index" ); 449 449 return epdfs ( i ); 450 450 }