Changeset 1915 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 12/20/06 15:58:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1913 r1915 758 758 759 759 const float beta = (1.0f - alpha) * (totalPvs - childPvs); 760 #if 1 761 const float newPvs = childPvs + beta; 762 #else 763 const float newPvs = alpha * childPvs + (1.0f - alpha) * totalPvs; 764 #endif 760 765 761 766 cout << "alpha " << alpha << " beta: " << beta << " child: " << childPvs << " parent: " << totalPvs << endl; 762 767 763 const float newPvs = childPvs + beta;764 765 768 if ((newPvs < childPvs - Limits::Small) || (newPvs > totalPvs + Limits::Small)) 766 769 cout << "Error!! " << newPvs << endl;
Note: See TracChangeset
for help on using the changeset viewer.