Changeset 1874 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 12/08/06 21:15:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
r1867 r1874 1887 1887 // decide whether to go left or right 1888 1888 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()); 1892 1891 1893 1892 // cout<<"axis="<<axis<<" pos="<<pos<<endl; … … 1896 1895 // cout<<"********"<<endl; 1897 1896 1898 if (params[axis] < r) {1897 if (params[axis] < p) { 1899 1898 node = in->back; 1900 params[axis] = params[axis] / p os;1899 params[axis] = params[axis] / p; 1901 1900 } else { 1902 1901 node = in->front; 1903 params[axis] = (params[axis] - p os) / ( 1.0f - pos);1902 params[axis] = (params[axis] - p) / ( 1.0f - p); 1904 1903 } 1905 1904 }
Note: See TracChangeset
for help on using the changeset viewer.