MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / toCSVString

Method toCSVString

openpgl/field/FieldStatistics.h:56–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 std::string toCSVString() const
57 {
58 const std::string separator = " , ";
59 std::stringstream ss;
60 ss << " " << separator;
61 ss << numCacheRegions << separator;
62 ss << numCacheRegionsReserved << separator;
63 ss << sizePerCacheRegions << separator;
64 ss << float(sizeAllCacheRegionsUsed) / 1024 / 1024 << separator;
65 ss << float(sizeAllCacheRegionsReserved) / 1024 / 1024 << separator;
66
67 ss << timeLastUpdate << separator;
68 ss << timeLastUpdateCopySamples << separator;
69 ss << timeLastUpdateSpatialStructureUpdate << separator;
70 ss << timeLastUpdateDirectionalDistriubtionUpdate << separator;
71
72 ss << spatialStructureStatistics.toCSVString();
73 ss << directionalDistributionStatistics.toCSVString();
74
75 return ss.str();
76 }
77
78 std::string toString() const
79 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected