Changeset 1083 for library/bdm/stat/exp_family.cpp
- Timestamp:
- 06/11/10 14:18:09 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/exp_family.cpp
r1079 r1083 415 415 416 416 417 double egamma::evallog ( const vec &val ) const {417 double egamma::evallog_nn ( const vec &val ) const { 418 418 double res = 0.0; //the rest will be added 419 419 int i; … … 424 424 res += ( alpha ( i ) - 1 ) * std::log ( val ( i ) ) - beta ( i ) * val ( i ); 425 425 } 426 double tmp = res - lognc();; 427 bdm_assert_debug ( std::isfinite ( tmp ), "Infinite value" ); 428 return tmp; 426 return res; 429 427 } 430 428