Changeset 802 for library/bdm/base

Show
Ignore:
Timestamp:
02/04/10 20:45:38 (14 years ago)
Author:
smidl
Message:

new class estudent + tests

Location:
library/bdm/base
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.cpp

    r770 r802  
    479479void epdf::log_write() const { 
    480480        if ( log_level == 10 ) { 
    481                 to_setting ( logrec->L.log_to_setting ( logrec->ids ( 0 ) ) ); 
     481                UI::save(this, logrec->L.log_to_setting ( logrec->ids ( 0 ) ) ); 
    482482        } else { 
    483483                if ( log_level > 0 ) { 
  • library/bdm/base/bdmbase.h

    r797 r802  
    538538        virtual vec variance() const = 0; 
    539539 
     540        //! return expected covariance -- default is diag(variance)!! 
     541        virtual mat covariance() const {return diag(variance());}; 
     542         
    540543        //! Lower and upper bounds of \c percentage % quantile, returns mean-2*sigma as default 
    541544        virtual void qbounds ( vec &lb, vec &ub, double percentage = 0.95 ) const {