Changeset 896 for library/bdm/stat

Show
Ignore:
Timestamp:
04/09/10 09:31:37 (14 years ago)
Author:
mido
Message:

cleanup of MemDS and its descendants
bdmtoolbox/CMakeLists.txt slightly changed to avoid unnecessary MEX condition
"indeces" replaced by "indices"

Location:
library/bdm/stat
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/stat/discrete.cpp

    r766 r896  
    4141        for ( int j = 0; j < dim; j++ ) { 
    4242                ind += dim_skips * ( inds ( j ) ); // add shift in linear index caused by this dimension 
    43                 dim_skips *= gridsizes ( j );  // indeces in the next dimension are repeated with period gridsizes(j) times greater that in this dimesion 
     43                dim_skips *= gridsizes ( j );  // indices in the next dimension are repeated with period gridsizes(j) times greater that in this dimesion 
    4444        } 
    4545        return ind; 
  • library/bdm/stat/discrete.h

    r737 r896  
    3636        //! active vector for first_vec and next_vec 
    3737        vec actvec; 
    38         //! indeces of active vector 
     38        //! indices of active vector 
    3939        vec actvec_ind; 
    4040        //! length of steps in each dimension 
     
    5151        void initialize(); 
    5252 
    53         //! return vector at position given by vector of indeces 
     53        //! return vector at position given by vector of indices 
    5454        vec get_vec ( const ivec &inds ); 
    5555 
    56         //! convert dimension indeces 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() 
    5757        long linear_index ( const ivec inds ); 
    5858 
  • library/bdm/stat/emix.h

    r886 r896  
    275275class eprod_base: public epdf { 
    276276protected: 
    277         //! Array of indeces 
     277        //! Array of indices 
    278278        Array<datalink*> dls; 
    279279        //! interface for a factor 
  • library/bdm/stat/exp_family.h

    r889 r896  
    294294                } 
    295295                void marginal (const RV &rvm, estudent<sq_T> &marg) const { 
    296                         ivec ind = rvm.findself_ids(rv); // indeces of rvm in rv 
     296                        ivec ind = rvm.findself_ids(rv); // indices of rvm in rv 
    297297                        marg._mu() = mu(ind); 
    298298                        marg._H() = sq_T(H,ind);