Changeset 1192 for library/bdm/base
- Timestamp:
- 09/17/10 14:35:13 (14 years ago)
- Location:
- library/bdm/base
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r1165 r1192 210 210 rv.dataind ( rv_up, v2v_down, v2v_up ); 211 211 downsize = v2v_down.length(); 212 upsize = v2v_up.length();212 upsize = rv_up._dsize();//v2v_up.length(); 213 213 } 214 214 -
library/bdm/base/bdmbase.h
r1165 r1192 1036 1036 }; 1037 1037 void connect(const RV &vecrv, const RV & vec1) { 1038 bdm_assert(vecrv._dsize()==length(),"Description of this vector, "+ vecrv.to_string() +" does not math it length: " + num2str(length())); 1038 1039 bdm_assert(vecrv._dsize()==length(),"Description of this vector, "+ vecrv.to_string() +" does not math it length: " + num2str(length())); 1039 1040 dl.set_connection(vecrv,vec1); 1041 vecfromlen=vec1._dsize(); 1040 1042 bdm_assert(dl._downsize()==length(), "Rv of this vector, "+vecrv.to_string() +" was not found in given rv: "+vec1.to_string()); 1041 1043 }; 1044 void push_to(vec &v_up){ 1045 dl.pushup(*this,v_up); 1046 } 1047 datalink_part& _dl() {return dl;} 1042 1048 }; 1043 1049 … … 1325 1331 1326 1332 //! Sample from predictor(cond). Implemented as sampling the joint density \f$ f(y_t, \theta_t) \f$ and discarding the sample of \f$ \theta_t \f$. 1327 virtual vec samplepred(const vec &cond=empty_vec) constNOT_IMPLEMENTED(empty_vec);1333 virtual vec samplepred(const vec &cond=empty_vec) NOT_IMPLEMENTED(empty_vec); 1328 1334 1329 1335 //! Matrix version of logpred