15#ifndef DRACO_COMPRESSION_ENTROPY_SHANNON_ENTROPY_H_
16#define DRACO_COMPRESSION_ENTROPY_SHANNON_ENTROPY_H_
39 int max_value,
int *out_num_unique_symbols);
45 uint32_t num_true_values);
75 EntropyData
Push(
const uint32_t *symbols,
int num_symbols);
79 EntropyData
Peek(
const uint32_t *symbols,
int num_symbols);
100 EntropyData UpdateSymbols(
const uint32_t *symbols,
int num_symbols,
103 std::vector<int32_t> frequencies_;
105 EntropyData entropy_data_;
int64_t GetNumberOfRAnsTableBits() const
Definition shannon_entropy.h:88
EntropyData Push(const uint32_t *symbols, int num_symbols)
Definition shannon_entropy.cc:63
ShannonEntropyTracker()
Definition shannon_entropy.cc:56
EntropyData Peek(const uint32_t *symbols, int num_symbols)
Definition shannon_entropy.cc:58
int64_t GetNumberOfDataBits() const
Definition shannon_entropy.h:82
Definition attribute_octahedron_transform.cc:21
int64_t ComputeShannonEntropy(const uint32_t *symbols, int num_symbols, int max_value, int *out_num_unique_symbols)
Definition shannon_entropy.cc:12
double ComputeBinaryShannonEntropy(uint32_t num_values, uint32_t num_true_values)
Definition shannon_entropy.cc:39
EntropyData()
Definition shannon_entropy.h:67
double entropy_norm
Definition shannon_entropy.h:63
int num_values
Definition shannon_entropy.h:64
int max_symbol
Definition shannon_entropy.h:65
int num_unique_symbols
Definition shannon_entropy.h:66