9 using std::stringstream;
488 ss.flags(std::ios_base::fixed);
490 ss <<
"KDGrove stats:\n"
491 <<
"\tNumber of trees: " <<
numTrees <<
"\n"
493 <<
"\tNumber of dynamic trees: " <<
numDynTrees <<
"\n"
494 <<
"\tStatistics (min, max, total, mean, stdev):\n"
495 <<
"\t\tBuilding time: ("
501 <<
"\t\tTree primitives: ("
507 <<
"\t\tMax primitives in leaf: ("
513 <<
"\t\tMin primitives in leaf: ("
519 <<
"\t\tMaximum depth: ("
525 <<
"\t\tAxis-aligned surface area: ("
531 <<
"\t\tNumber of interior nodes: ("
537 <<
"\t\tNumber of leaf nodes: ("
543 <<
"\t\tTree cost: ("
Data structure class containing statistics for KDGrove.
Definition: KDGroveStats.h:18
double minCost
The minimum tree cost among all KDTrees.
Definition: KDGroveStats.h:394
double stdevSurfaceArea
The standard deviation of axis-aligned surface area among all KDTrees.
Definition: KDGroveStats.h:286
int maxNumInterior
The maximum number of interior nodes among all KDTrees.
Definition: KDGroveStats.h:313
double minSurfaceArea
The minimum axis-aligned surface area among all KDTrees.
Definition: KDGroveStats.h:261
double meanNumInterior
The mean number of interior nodes among all KDTrees.
Definition: KDGroveStats.h:322
int maxNumLeaves
The maximum number of leaf nodes among all KDTrees.
Definition: KDGroveStats.h:358
int totalMaxDepth
The total maximum depth among all KDTrees (summation)
Definition: KDGroveStats.h:209
int minMaxPrimsInLeaf
The minimum maximum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:120
double totalSurfaceArea
The total axis-aligned surface area among all KDTrees (summation)
Definition: KDGroveStats.h:253
double totalBuildingTime
Total building time among all built KDTrees (seconds)
Definition: KDGroveStats.h:43
double maxBuildingTime
Maximum building time among all built KDTrees (seconds)
Definition: KDGroveStats.h:51
int minMinPrimsInLeaf
The minimun minimum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:170
int maxTreePrimitives
The maximum number of primitives among all KDTrees.
Definition: KDGroveStats.h:84
int maxMaxDepth
The maximum maximum depth among all KDTrees.
Definition: KDGroveStats.h:227
double minBuildingTime
Minimum building time among all built KDTrees (seconds)
Definition: KDGroveStats.h:47
string toString() const
Build a string representation of the KDGrove stats.
Definition: KDGroveStats.h:486
int numDynTrees
The number of dynamic trees composing the KDGrove.
Definition: KDGroveStats.h:39
friend ostream & operator<<(ostream &out, KDGroveStats const &stats)
Support for operator<< on output streams.
Definition: KDGroveStats.h:556
double stdevMaxDepth
The standard deviation of max depth among all KDTrees.
Definition: KDGroveStats.h:245
int totalNumInterior
The total number of interior nodes among all KDTrees (summation)
Definition: KDGroveStats.h:295
double meanNumLeaves
The mean number of leaf nodes among all KDTrees.
Definition: KDGroveStats.h:367
double stdevNumInterior
The standard deviation of interior nodes count among all KDTrees.
Definition: KDGroveStats.h:331
double stdevNumLeaves
The standard deviation of leaf nodes count among all KDTrees.
Definition: KDGroveStats.h:376
int minNumInterior
The minimum number of interior nodes among all KDTrees.
Definition: KDGroveStats.h:304
double meanMaxDepth
The mean max depth among all KDTrees.
Definition: KDGroveStats.h:236
KDGroveStats()
Default constructor for KDGrove stats.
Definition: KDGroveStats.h:428
double meanMinPrimsInLeaf
The mean minimum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:190
double stdevMinPrimsInLeaf
The standard deviation of minimum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:200
int minTreePrimitives
The minimum number of primitives among all KDTrees.
Definition: KDGroveStats.h:76
double maxCost
Definition: KDGroveStats.h:403
int totalTreePrimitives
The total number of primitives among all KDTrees (summation)
Definition: KDGroveStats.h:68
int minMaxDepth
The minimum maximum depth among all KDTrees.
Definition: KDGroveStats.h:218
int totalMaxPrimsInLeaf
The total maximum number of primitives among all leaves for each KDTree (summation)
Definition: KDGroveStats.h:110
double stdevCost
The standard deviation of cost among all KDTrees.
Definition: KDGroveStats.h:421
double meanBuildingTime
Mean building time among all built KDTrees (seconds)
Definition: KDGroveStats.h:55
double meanTreePrimitives
The mean number of primitives among all KDTrees.
Definition: KDGroveStats.h:92
double stdevTreePrimitives
The standard deviation of number of primitives among all KDTrees.
Definition: KDGroveStats.h:100
double stdevMaxPrimsInLeaf
The standard deviation of maximum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:150
double meanCost
The mean cost among all KDTrees.
Definition: KDGroveStats.h:412
int totalNumLeaves
The total number of leaf nodes among all KDTrees (summation)
Definition: KDGroveStats.h:340
int maxMinPrimsInLeaf
The maximum minimum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:180
double meanMaxPrimsInLeaf
The mean maximum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:140
int maxMaxPrimsInLeaf
The maximum maximum number of primitives among all leaves for each KDTree.
Definition: KDGroveStats.h:130
int minNumLeaves
The minimum number of leaf nodes among all KDTrees.
Definition: KDGroveStats.h:349
int numTrees
The total number of trees composing the KDGrove.
Definition: KDGroveStats.h:27
int totalMinPrimsInLeaf
The total minimum number of primitives among all leaves for each KDTree (summation)
Definition: KDGroveStats.h:160
double meanSurfaceArea
The mean axis-aligned surface area among all KDTrees.
Definition: KDGroveStats.h:277
double stdevBuildingTime
Standard deviation of building time among all built KDTrees (seconds)
Definition: KDGroveStats.h:60
int numStaticTrees
The number of static trees composing the KDGrove.
Definition: KDGroveStats.h:33
double maxSurfaceArea
The maximum axis-aligned surface area among all KDTrees.
Definition: KDGroveStats.h:269
double totalCost
Total cost among all KDTrees (summation)
Definition: KDGroveStats.h:385