Project
Loading...
Searching...
No Matches
properties.h
Go to the documentation of this file.
1// Copyright 2019-2023 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15
16#ifndef RANS_INTERNAL_METRICS_PROPERTIES_H_
17#define RANS_INTERNAL_METRICS_PROPERTIES_H_
18
19#include <cstddef>
20#include <cstdint>
21#include <cmath>
22#include <array>
23#include <optional>
24
26
27namespace o2::rans
28{
29
30template <typename source_T>
33
35 std::optional<size_t> renormingPrecisionBits{};
36 std::optional<size_t> nIncompressibleSymbols{};
37 std::optional<size_t> nIncompressibleSamples{};
38 std::optional<source_type> min{};
39 std::optional<source_type> max{};
40};
41
42template <typename source_T>
45
48 size_t numSamples{};
52 std::array<uint32_t, 32> symbolLengthDistribution{{}};
53 std::array<uint32_t, 32> weightedSymbolLengthDistribution{{}};
54};
55
56} // namespace o2::rans
57
58#endif /* RANS_INTERNAL_METRICS_PROPERTIES_H_ */
Low overhead dictionary size estimate that can be computed alogiside other metrics.
std::optional< size_t > nIncompressibleSamples
Definition properties.h:37
std::optional< size_t > renormingPrecisionBits
Definition properties.h:35
std::optional< source_type > max
Definition properties.h:39
internal::DictSizeEstimate dictSizeEstimate
Definition properties.h:34
std::optional< source_type > min
Definition properties.h:38
std::optional< size_t > nIncompressibleSymbols
Definition properties.h:36
std::array< uint32_t, 32 > weightedSymbolLengthDistribution
Definition properties.h:53
std::array< uint32_t, 32 > symbolLengthDistribution
Definition properties.h:52