Changeset 670 for GTP/trunk/Lib/Vis/shared/EvalStats
- Timestamp:
- 03/02/06 14:47:47 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/shared/EvalStats/EvalStats.cpp
r668 r670 97 97 const int index) 98 98 { 99 float denom = currentStats.mRenderCost ? currentStats.mRenderCost : 0.000001f;100 float costRatio = firstStats.mRenderCost / denom;99 float denom = firstStats.mRenderCost ? firstStats.mRenderCost : 0.000001f; 100 float costRatio = currentStats.mRenderCost / denom; 101 101 102 102 denom = firstStats.mAvgRenderCost ? firstStats.mAvgRenderCost : 0.000001f; 103 float avgCostRatio = firstStats.mAvgRenderCost / denom;103 float avgCostRatio = currentStats.mAvgRenderCost / denom; 104 104 105 105 statsOut << "#ViewCells\n" << index + 1 << endl 106 << "#TotalRenderCostGain\n" << 100.0f - costRatio * 100.0f << endl 107 << "#AvgRenderCostGain\n" << 100.0f - avgCostRatio * 100.0f << endl << endl; 106 //<< "#TotalRenderCostGain\n" << 100.0f - costRatio * 100.0f << endl 107 //<< "#AvgRenderCostGain\n" << 100.0f - avgCostRatio * 100.0f << endl << endl; 108 << "#TotalRenderCostGain\n" << 100.0f * costRatio - 100.0f<< endl 109 << "#AvgRenderCostGain\n" << 100.0f * avgCostRatio -100.0f << endl << endl; 108 110 } 109 111 … … 163 165 { 164 166 cout << "writing output to file " << *sit << endl; 165 166 167 ofstream statsOut((*sit).c_str()); 167 168 ++ sit; 168 169 169 cout << "size here" << (*it).size() << endl;170 170 // compute size of output vector 171 171 const int n = min((int)firstStats.size(), (int)(*it).size()); … … 175 175 ComputeStats(statsOut, firstStats[i], (*it)[i], i); 176 176 } 177 cout << "here2 " << n << endl;177 178 178 statsOut.close(); 179 179 }
Note: See TracChangeset
for help on using the changeset viewer.