Changeset 700 for library/bdm/base/bdmbase.h
- Timestamp:
- 11/04/09 22:54:58 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r693 r700 266 266 //! Minimum time-offset 267 267 int mint() const { 268 return times.length()>0 ? min (times) : 0; 268 return times.length()>0 ? min (times) : 0; 269 } 270 //! Minimum time-offset of ids of given RVs 271 int mint(const RV &rv) const { 272 bvec belong=zeros_b(len); 273 for (int r=0; r<rv.length(); r++){ 274 belong = belong | (ids == rv.id(r)); 275 } 276 return times.length()>0 ? min (times(belong)) : 0; 269 277 } 270 278 //!@} … … 598 606 logrec->L.logit( logrec->ids(0), mean() ); 599 607 } 600 if (log_level> 2) {608 if (log_level>1) { 601 609 vec lb; vec ub; 602 610 qbounds(lb,ub); … … 913 921 //establish c2c connection 914 922 rvc.dataind ( rvc_up, c2c_lo, c2c_up ); 915 bdm_assert_debug ( c2c_lo.length() + v2c_lo.length() == condsize, "cond is not fully given" );923 // bdm_assert_debug ( c2c_lo.length() + v2c_lo.length() == condsize, "cond is not fully given" ); 916 924 } 917 925 … … 919 927 vec get_cond ( const vec &val_up, const vec &cond_up ) { 920 928 vec tmp ( condsize ); 921 set_subvector ( tmp, v2c_lo, val_up ( v2c_up ) ); 922 set_subvector ( tmp, c2c_lo, cond_up ( c2c_up ) ); 929 fill_cond (val_up, cond_up, tmp ); 923 930 return tmp; 931 } 932 //! fill condition 933 void fill_cond ( const vec &val_up, const vec &cond_up, vec& cond_out){ 934 bdm_assert_debug(cond_out.length()>=condsize,"dl.fill_cond: cond_out is too small"); 935 set_subvector ( cond_out, v2c_lo, val_up ( v2c_up ) ); 936 set_subvector ( cond_out, c2c_lo, cond_up ( c2c_up ) ); 924 937 } 925 938 //! Fill … … 1077 1090 1078 1091 BM() : yrv(),dimy(0),rvc(),dimc(0), ll ( 0 ), evalll ( true ) { }; 1079 BM ( const BM &B ) : yrv ( B.yrv ), dimy(B.dimy), rvc ( B.rvc), ll ( B.ll ), evalll ( B.evalll ) {}1092 // BM ( const BM &B ) : yrv ( B.yrv ), dimy(B.dimy), rvc ( B.rvc ),dimc(B.dimc), ll ( B.ll ), evalll ( B.evalll ) {} 1080 1093 //! \brief Copy function required in vectors, Arrays of BM etc. Have to be DELETED manually! 1081 1094 //! Prototype: \code BM* _copy_() const {return new BM(*this);} \endcode