Ignore:
Timestamp:
12/08/06 21:15:44 (18 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp

    r1867 r1874  
    18871887        // decide whether to go left or right 
    18881888        int axis = in->axis; 
    1889         float pos = in->GetRelativePosition();  
    1890          
    1891         float r = in->back->GetImportance()/(in->back->GetImportance() + in->front->GetImportance()); 
     1889        //      float p = in->GetRelativePosition();  
     1890        float p = in->back->GetImportance()/(in->back->GetImportance() + in->front->GetImportance()); 
    18921891         
    18931892        //      cout<<"axis="<<axis<<" pos="<<pos<<endl; 
     
    18961895        //      cout<<"********"<<endl; 
    18971896         
    1898         if (params[axis] < r) { 
     1897        if (params[axis] < p) { 
    18991898          node = in->back; 
    1900           params[axis] = params[axis] / pos; 
     1899          params[axis] = params[axis] / p; 
    19011900        } else { 
    19021901          node = in->front; 
    1903           params[axis] = (params[axis] - pos) / ( 1.0f - pos); 
     1902          params[axis] = (params[axis] - p) / ( 1.0f - p); 
    19041903        } 
    19051904  } 
Note: See TracChangeset for help on using the changeset viewer.