Soenneker.Utils.Strings.HammingDistance
3.0.30
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Utils.Strings.HammingDistance --version 3.0.30
NuGet\Install-Package Soenneker.Utils.Strings.HammingDistance -Version 3.0.30
<PackageReference Include="Soenneker.Utils.Strings.HammingDistance" Version="3.0.30" />
paket add Soenneker.Utils.Strings.HammingDistance --version 3.0.30
#r "nuget: Soenneker.Utils.Strings.HammingDistance, 3.0.30"
// Install Soenneker.Utils.Strings.HammingDistance as a Cake Addin #addin nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.30 // Install Soenneker.Utils.Strings.HammingDistance as a Cake Tool #tool nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.30
Soenneker.Utils.Strings.HammingDistance
A utility library for comparing strings via the Hamming Distance algorithm
Installation
dotnet add package Soenneker.Utils.Strings.HammingDistance
Why Hamming Distance?
Hamming Distance is a simple yet powerful metric for comparing strings or sequences of equal length. It is especially useful in scenarios where exact alignment and positional differences matter, such as:
Positional Accuracy:
Hamming Distance identifies and quantifies differences at each specific position in two sequences.
Binary or Fixed-Length Data:
It is ideal for comparing fixed-length strings, binary data, or encoded sequences.
Lightweight and Efficient:
Hamming Distance has low computational overhead, making it well-suited for performance-critical applications.
Ideal for Error Detection:
It is commonly used in error detection and correction algorithms, like detecting bit-flip errors in transmitted data.
Usage
var text1 = "kitten";
var text2 = "sitten";
double similarityPercentage = HammingDistanceStringUtil.CalculatePercentage(text1, text2); // ~83.33
Note:
Hamming Distance requires strings of equal length. If the strings differ in length, an exception will be thrown to ensure valid comparisons.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.104 | 0 | 1/13/2025 |
3.0.103 | 0 | 1/13/2025 |
3.0.102 | 21 | 1/13/2025 |
3.0.101 | 24 | 1/13/2025 |
3.0.100 | 32 | 1/12/2025 |
3.0.99 | 30 | 1/11/2025 |
3.0.98 | 30 | 1/11/2025 |
3.0.97 | 32 | 1/11/2025 |
3.0.96 | 31 | 1/11/2025 |
3.0.95 | 32 | 1/10/2025 |
3.0.94 | 17 | 1/10/2025 |
3.0.93 | 35 | 1/10/2025 |
3.0.92 | 38 | 1/10/2025 |
3.0.91 | 35 | 1/10/2025 |
3.0.90 | 102 | 1/3/2025 |
3.0.89 | 97 | 1/3/2025 |
3.0.88 | 80 | 1/3/2025 |
3.0.87 | 77 | 1/3/2025 |
3.0.86 | 79 | 1/2/2025 |
3.0.85 | 76 | 1/2/2025 |
3.0.84 | 85 | 1/2/2025 |
3.0.83 | 78 | 1/2/2025 |
3.0.82 | 94 | 1/1/2025 |
3.0.81 | 83 | 1/1/2025 |
3.0.80 | 86 | 1/1/2025 |
3.0.79 | 82 | 1/1/2025 |
3.0.78 | 95 | 1/1/2025 |
3.0.77 | 84 | 1/1/2025 |
3.0.76 | 99 | 12/31/2024 |
3.0.75 | 83 | 12/31/2024 |
3.0.74 | 95 | 12/31/2024 |
3.0.73 | 101 | 12/31/2024 |
3.0.72 | 96 | 12/31/2024 |
3.0.71 | 78 | 12/31/2024 |
3.0.70 | 73 | 12/31/2024 |
3.0.69 | 73 | 12/31/2024 |
3.0.68 | 81 | 12/31/2024 |
3.0.67 | 80 | 12/31/2024 |
3.0.66 | 76 | 12/30/2024 |
3.0.65 | 71 | 12/28/2024 |
3.0.64 | 83 | 12/28/2024 |
3.0.63 | 76 | 12/27/2024 |
3.0.62 | 76 | 12/27/2024 |
3.0.61 | 77 | 12/24/2024 |
3.0.60 | 80 | 12/24/2024 |
3.0.59 | 68 | 12/24/2024 |
3.0.58 | 78 | 12/24/2024 |
3.0.57 | 69 | 12/24/2024 |
3.0.56 | 82 | 12/24/2024 |
3.0.55 | 72 | 12/24/2024 |
3.0.54 | 80 | 12/24/2024 |
3.0.53 | 73 | 12/24/2024 |
3.0.52 | 79 | 12/23/2024 |
3.0.51 | 78 | 12/23/2024 |
3.0.50 | 83 | 12/23/2024 |
3.0.49 | 81 | 12/23/2024 |
3.0.48 | 81 | 12/23/2024 |
3.0.47 | 80 | 12/22/2024 |
3.0.46 | 80 | 12/22/2024 |
3.0.45 | 77 | 12/22/2024 |
3.0.44 | 76 | 12/22/2024 |
3.0.43 | 80 | 12/22/2024 |
3.0.42 | 82 | 12/21/2024 |
3.0.41 | 80 | 12/21/2024 |
3.0.40 | 76 | 12/21/2024 |
3.0.39 | 76 | 12/21/2024 |
3.0.38 | 74 | 12/21/2024 |
3.0.37 | 82 | 12/21/2024 |
3.0.36 | 77 | 12/21/2024 |
3.0.35 | 77 | 12/20/2024 |
3.0.34 | 80 | 12/20/2024 |
3.0.33 | 91 | 12/20/2024 |
3.0.32 | 75 | 12/20/2024 |
3.0.31 | 79 | 12/20/2024 |
3.0.30 | 83 | 12/19/2024 |
3.0.29 | 81 | 12/19/2024 |
3.0.28 | 75 | 12/19/2024 |
3.0.27 | 74 | 12/19/2024 |
3.0.26 | 85 | 12/18/2024 |
3.0.25 | 76 | 12/18/2024 |
3.0.24 | 75 | 12/16/2024 |
3.0.23 | 69 | 12/16/2024 |
3.0.22 | 76 | 12/10/2024 |
3.0.21 | 80 | 12/10/2024 |
3.0.20 | 78 | 12/9/2024 |
3.0.19 | 81 | 12/9/2024 |
3.0.18 | 83 | 12/9/2024 |
3.0.17 | 78 | 12/9/2024 |
3.0.16 | 81 | 12/9/2024 |
3.0.15 | 83 | 12/7/2024 |
3.0.14 | 86 | 12/6/2024 |
3.0.13 | 81 | 12/6/2024 |
3.0.12 | 79 | 12/6/2024 |
3.0.11 | 78 | 12/6/2024 |
3.0.10 | 85 | 12/6/2024 |
3.0.9 | 79 | 12/6/2024 |
3.0.8 | 82 | 12/6/2024 |
3.0.7 | 81 | 12/6/2024 |
3.0.6 | 84 | 12/6/2024 |
3.0.5 | 85 | 12/6/2024 |
3.0.4 | 86 | 12/5/2024 |
3.0.3 | 80 | 12/5/2024 |
3.0.2 | 81 | 12/4/2024 |
3.0.1 | 89 | 12/4/2024 |