Changeset 896 for library/bdm/estim

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/estim
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/arx.cpp

    r883 r896  
    148148@param Eg0 a copy of prior GiW density before estimation 
    149149@param Egll likelihood of the current Eg 
    150 @param indeces current indeces 
     150@param indices current indices 
    151151\return best likelihood in the structure below the given one 
    152152*/ 
    153 double egiw_bestbelow ( egiw Eg, egiw Eg0, double Egll, ivec &indeces ) { //parameter Eg is a copy! 
     153double egiw_bestbelow ( egiw Eg, egiw Eg0, double Egll, ivec &indices ) { //parameter Eg is a copy! 
    154154        ldmat Vo = Eg._V(); //copy 
    155155        ldmat Vo0 = Eg._V(); //copy 
     
    164164        double belll = Egll; 
    165165 
    166         ivec tmpindeces; 
    167         ivec maxindeces = indeces; 
    168  
    169  
    170         cout << "bb:(" << indeces << ") ll=" << Egll << endl; 
     166        ivec tmpindices; 
     167        ivec maxindices = indices; 
     168 
     169 
     170        cout << "bb:(" << indices << ") ll=" << Egll << endl; 
    171171 
    172172        //try to remove only one rv 
     
    186186                // 
    187187                if ( tmpll > Egll ) { //increase of the likelihood 
    188                         tmpindeces = indeces; 
    189                         tmpindeces.del ( i ); 
     188                        tmpindices = indices; 
     189                        tmpindices.del ( i ); 
    190190                        //search for a better match in this substructure 
    191                         belll = egiw_bestbelow ( Eg, Eg0, tmpll, tmpindeces ); 
     191                        belll = egiw_bestbelow ( Eg, Eg0, tmpll, tmpindices ); 
    192192                        if ( belll > maxll ) { //better match found 
    193193                                maxll = belll; 
    194                                 maxindeces = tmpindeces; 
     194                                maxindices = tmpindices; 
    195195                        } 
    196196                } 
    197197        } 
    198         indeces = maxindeces; 
     198        indices = maxindices; 
    199199        return maxll; 
    200200} 
  • library/bdm/estim/arx.h

    r878 r896  
    9797        void ml_predictor_update ( mlnorm<sq_T> &pred ) const; 
    9898        mlstudent* predictor_student() const; 
    99         //! Brute force structure estimation.\return indeces of accepted regressors. 
     99        //! Brute force structure estimation.\return indices of accepted regressors. 
    100100        ivec structure_est ( egiw Eg0 ); 
    101         //! Smarter structure estimation by Ludvik Tesar.\return indeces of accepted regressors. 
     101        //! Smarter structure estimation by Ludvik Tesar.\return indices of accepted regressors. 
    102102        ivec structure_est_LT ( egiw Eg0 ); 
    103103        //!@} 
  • library/bdm/estim/kalman.h

    r889 r896  
    432432Using Frobenius form, see []. 
    433433 
    434 For easier use in the future, indeces theta_in_A and theta_in_C are set. TODO - explain 
     434For easier use in the future, indices theta_in_A and theta_in_C are set. TODO - explain 
    435435*/ 
    436436//template<class sq_T>