5#include <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7#include <CesiumUtility/JsonValue.h>
11#include <unordered_map>
22 static constexpr const char* TypeName =
"PropertyStatistics";
30 std::optional<CesiumUtility::JsonValue>
min;
38 std::optional<CesiumUtility::JsonValue>
max;
46 std::optional<CesiumUtility::JsonValue>
mean;
54 std::optional<CesiumUtility::JsonValue>
median;
70 std::optional<CesiumUtility::JsonValue>
variance;
78 std::optional<CesiumUtility::JsonValue>
sum;
86 std::unordered_map<std::string, CesiumUtility::JsonValue>
occurrences;
100 this->occurrences.bucket_count() *
102 for (
const auto& [k, v] : this->occurrences) {
103 accum += int64_t(k.capacity() *
sizeof(
char) -
sizeof(std::string));
A generic implementation of a value in a JSON structure.
Classes for using 3D Tiles.
Statistics about property values.
std::optional< CesiumUtility::JsonValue > max
The maximum property value occurring in the tileset. Only applicable to SCALAR, VECN,...
std::optional< CesiumUtility::JsonValue > mean
The arithmetic mean of property values occurring in the tileset. Only applicable to SCALAR,...
std::optional< CesiumUtility::JsonValue > standardDeviation
The standard deviation of property values occurring in the tileset. Only applicable to SCALAR,...
std::optional< CesiumUtility::JsonValue > median
The median of property values occurring in the tileset. Only applicable to SCALAR,...
std::optional< CesiumUtility::JsonValue > variance
The variance of property values occurring in the tileset. Only applicable to SCALAR,...
std::unordered_map< std::string, CesiumUtility::JsonValue > occurrences
A dictionary, where each key corresponds to an enum name and each value is the number of occurrences ...
std::optional< CesiumUtility::JsonValue > min
The minimum property value occurring in the tileset. Only applicable to SCALAR, VECN,...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< CesiumUtility::JsonValue > sum
The sum of property values occurring in the tileset. Only applicable to SCALAR, VECN,...
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...