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"

Files:
1 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}