Documentation
¶
Overview ¶
* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateStringShannonEntropy ¶
CalculateStringShannonEntropy measures the Shannon entropy of a string the returned value is a bits/byte 'entropy' value between 0.0 and 8.0, 0 being no, and 8 being maximal entropy. See http://bearcave.com/misl/misl_tech/wavelets/compression/shannon.html for the algorithmic explanation. Code comes from https://rosettacode.org/wiki/Entropy#Go:_Slice_version
Types ¶
This section is empty.