Changeset 185
- Timestamp:
- 10/17/08 13:34:40 (16 years ago)
- Location:
- bdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/merger.cpp
r183 r185 93 93 // Make marginal on rvc_i 94 94 epdf* tmp_marg = Mpred->marginal ( mpdfs ( i )->_rvc() ); 95 lw_src += tmp_marg->evalpdflog_m ( get_vec(Smp(i), irv_rvcs(i) ) ); 95 for(int k=0;k<Ns;k++){ 96 lw_src(k) += tmp_marg->evalpdflog ( get_vec(Smp(i), irv_rvcs(i) ) );} 96 97 delete tmp_marg; 97 98 } -
bdm/stat/libEF.h
r183 r185 387 387 void condition (const vec &cond ); 388 388 389 /*template<class sq_M>390 friend std::ostream &operator<< ( std::ostream &os, const mlnorm<sq_M> &ml );*/389 template<class sq_M> 390 friend std::ostream &operator<< ( std::ostream &os, mlnorm<sq_M> &ml ); 391 391 }; 392 392 … … 641 641 /////////// 642 642 643 // template<class sq_T> 644 // std::ostream &operator<< ( std::ostream &os, const mlnorm<sq_T> &ml ){ 645 // os << "A:"<< ml.A<<endl; 646 // os << "mu:"<< ml.mu_const<<endl; 647 // os << "R:" << ml.est._R().to_mat() <<endl; 648 // return os; 649 // } 650 // ; 643 template<class sq_T> 644 std::ostream &operator<< ( std::ostream &os, mlnorm<sq_T> &ml ){ 645 os << "A:"<< ml.A<<endl; 646 os << "mu:"<< ml.mu_const<<endl; 647 os << "R:" << ml.epdf._R().to_mat() <<endl; 648 return os; 649 }; 651 650 652 651 #endif //EF_H