Changeset 230 for bdm

Show
Ignore:
Timestamp:
01/15/09 10:53:55 (15 years ago)
Author:
smidl
Message:

mpf_delta - estimation of covariance weight

Location:
bdm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • bdm/math/chmat.h

    r183 r230  
    7575        chmat& operator += ( const chmat &A2 ); 
    7676        chmat& operator -= ( const chmat &A2 ) ; 
     77        chmat& operator * ( const chmat &A2 ); 
     78        chmat& operator * ( const double &d ){Ch*d; return *this;}; 
     79        chmat& operator = ( const chmat &A2 ){Ch=A2.Ch;dim=A2.dim;return *this;} 
    7780}; 
    7881 
  • bdm/stat/loggers.cpp

    r162 r230  
    4444                for ( j=0;j<entries ( i ).length();j++ ) { //for RVs in entries 
    4545                        int rvsize = entries ( i ).size ( j ); 
    46                         if ( rvsize ==1 ) { 
    47                                 scalarnames ( ii ) = names ( i ) + "_" + entries ( i ).name ( j ); 
    48                                 ii++; 
    49                         } 
    50                         else { 
     46                        // for non-empty names 
     47                        if (names(i).length()>0) {scalarnames(ii)=names(i) + "_";} 
     48                        // add name 
     49                        scalarnames ( ii ) +=  entries ( i ).name ( j ); 
     50                        // add number when needed 
     51                        if ( rvsize >1 ) { 
     52                                // copy the same name for th whole RV 
     53                                for ( k=1;k<rvsize;k++ ) {scalarnames(ii+k)=scalarnames(ii);} 
     54                                // add numbers 
    5155                                for ( k=0;k<rvsize;k++ ) { //for all scalars in given RV 
    5256                                        sprintf ( num,"%d",k ); 
    53                                         scalarnames ( ii ) = names ( i ) + "_" + entries ( i ).name ( j ) + "_" + num; 
     57                                        scalarnames ( ii ) += (std::string)"_" + num; 
    5458                                        ii++; 
    5559                                } 
    56                         } 
     60                        } else { 
     61                        ii++;} 
    5762                } 
    5863        }