Changeset 896 for library/bdm/stat
- Timestamp:
- 04/09/10 09:31:37 (14 years ago)
- Location:
- library/bdm/stat
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/discrete.cpp
r766 r896 41 41 for ( int j = 0; j < dim; j++ ) { 42 42 ind += dim_skips * ( inds ( j ) ); // add shift in linear index caused by this dimension 43 dim_skips *= gridsizes ( j ); // ind eces in the next dimension are repeated with period gridsizes(j) times greater that in this dimesion43 dim_skips *= gridsizes ( j ); // indices in the next dimension are repeated with period gridsizes(j) times greater that in this dimesion 44 44 } 45 45 return ind; -
library/bdm/stat/discrete.h
r737 r896 36 36 //! active vector for first_vec and next_vec 37 37 vec actvec; 38 //! ind eces of active vector38 //! indices of active vector 39 39 vec actvec_ind; 40 40 //! length of steps in each dimension … … 51 51 void initialize(); 52 52 53 //! return vector at position given by vector of ind eces53 //! return vector at position given by vector of indices 54 54 vec get_vec ( const ivec &inds ); 55 55 56 //! convert dimension ind eces into linear index, the indexing is in the same way as in \c next_vec()56 //! convert dimension indices into linear index, the indexing is in the same way as in \c next_vec() 57 57 long linear_index ( const ivec inds ); 58 58 -
library/bdm/stat/emix.h
r886 r896 275 275 class eprod_base: public epdf { 276 276 protected: 277 //! Array of ind eces277 //! Array of indices 278 278 Array<datalink*> dls; 279 279 //! interface for a factor -
library/bdm/stat/exp_family.h
r889 r896 294 294 } 295 295 void marginal (const RV &rvm, estudent<sq_T> &marg) const { 296 ivec ind = rvm.findself_ids(rv); // ind eces of rvm in rv296 ivec ind = rvm.findself_ids(rv); // indices of rvm in rv 297 297 marg._mu() = mu(ind); 298 298 marg._H() = sq_T(H,ind);