Soenneker.Utils.Strings.HammingDistance 3.0.225

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.Strings.HammingDistance --version 3.0.225                
NuGet\Install-Package Soenneker.Utils.Strings.HammingDistance -Version 3.0.225                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.Strings.HammingDistance" Version="3.0.225" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.Strings.HammingDistance --version 3.0.225                
#r "nuget: Soenneker.Utils.Strings.HammingDistance, 3.0.225"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Utils.Strings.HammingDistance as a Cake Addin
#addin nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.225

// Install Soenneker.Utils.Strings.HammingDistance as a Cake Tool
#tool nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.225                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.228 0 2/22/2025
3.0.227 0 2/22/2025
3.0.226 0 2/22/2025
3.0.225 0 2/22/2025
3.0.224 0 2/21/2025
3.0.223 38 2/21/2025
3.0.222 61 2/19/2025
3.0.221 59 2/19/2025
3.0.220 63 2/19/2025
3.0.219 73 2/18/2025
3.0.218 67 2/18/2025
3.0.217 62 2/18/2025
3.0.216 65 2/14/2025
3.0.215 64 2/14/2025
3.0.214 68 2/13/2025
3.0.213 68 2/12/2025
3.0.212 73 2/12/2025
3.0.211 68 2/12/2025
3.0.210 61 2/12/2025
3.0.209 58 2/12/2025
3.0.208 72 2/12/2025
3.0.207 64 2/11/2025
3.0.206 61 2/11/2025
3.0.205 60 2/11/2025
3.0.204 85 2/11/2025
3.0.203 72 2/11/2025
3.0.202 67 2/10/2025
3.0.201 66 2/10/2025
3.0.200 81 2/10/2025
3.0.199 68 2/10/2025
3.0.198 66 2/10/2025
3.0.197 68 2/9/2025
3.0.196 70 2/9/2025
3.0.195 73 2/8/2025
3.0.194 76 2/8/2025
3.0.193 68 2/7/2025
3.0.192 63 2/7/2025
3.0.191 68 2/7/2025
3.0.190 79 2/7/2025
3.0.188 75 2/7/2025
3.0.187 67 2/7/2025
3.0.186 66 2/7/2025
3.0.185 51 2/6/2025
3.0.184 72 2/5/2025
3.0.183 67 2/5/2025
3.0.182 67 2/5/2025
3.0.181 72 2/5/2025
3.0.180 65 2/5/2025
3.0.179 67 2/5/2025
3.0.178 78 2/5/2025
3.0.177 55 1/28/2025
3.0.176 49 1/28/2025
3.0.175 44 1/28/2025
3.0.174 47 1/28/2025
3.0.173 47 1/27/2025
3.0.172 45 1/27/2025
3.0.171 48 1/27/2025
3.0.170 50 1/26/2025
3.0.169 40 1/26/2025
3.0.168 42 1/26/2025
3.0.167 40 1/26/2025
3.0.166 34 1/25/2025
3.0.165 47 1/25/2025
3.0.164 45 1/25/2025
3.0.163 43 1/25/2025
3.0.162 33 1/25/2025
3.0.161 24 1/24/2025
3.0.160 24 1/24/2025
3.0.159 44 1/24/2025
3.0.158 38 1/24/2025
3.0.157 31 1/24/2025
3.0.156 30 1/24/2025
3.0.155 43 1/24/2025
3.0.154 46 1/24/2025
3.0.153 44 1/23/2025
3.0.152 62 1/21/2025
3.0.151 68 1/21/2025
3.0.150 64 1/21/2025
3.0.149 63 1/21/2025
3.0.148 70 1/21/2025
3.0.147 68 1/21/2025
3.0.146 66 1/21/2025
3.0.145 67 1/21/2025
3.0.144 62 1/21/2025
3.0.143 55 1/21/2025
3.0.142 67 1/20/2025
3.0.141 63 1/20/2025
3.0.140 73 1/20/2025
3.0.139 64 1/20/2025
3.0.138 65 1/20/2025
3.0.137 67 1/20/2025
3.0.136 64 1/20/2025
3.0.135 63 1/20/2025
3.0.134 67 1/19/2025
3.0.133 74 1/19/2025
3.0.132 63 1/19/2025
3.0.131 68 1/19/2025
3.0.130 63 1/19/2025
3.0.129 63 1/19/2025
3.0.128 66 1/18/2025
3.0.127 65 1/18/2025
3.0.126 67 1/17/2025
3.0.125 68 1/17/2025
3.0.124 68 1/17/2025
3.0.123 66 1/17/2025
3.0.122 69 1/16/2025
3.0.121 67 1/16/2025
3.0.120 70 1/16/2025
3.0.119 66 1/16/2025
3.0.118 69 1/16/2025
3.0.117 76 1/16/2025
3.0.116 64 1/16/2025
3.0.115 79 1/16/2025
3.0.114 73 1/15/2025
3.0.113 66 1/15/2025
3.0.112 66 1/15/2025
3.0.111 68 1/15/2025
3.0.110 50 1/15/2025
3.0.109 51 1/15/2025
3.0.108 50 1/15/2025
3.0.107 43 1/15/2025
3.0.106 33 1/14/2025
3.0.105 32 1/14/2025
3.0.104 55 1/13/2025
3.0.103 56 1/13/2025
3.0.102 62 1/13/2025
3.0.101 62 1/13/2025
3.0.100 70 1/12/2025
3.0.99 63 1/11/2025
3.0.98 68 1/11/2025
3.0.97 68 1/11/2025
3.0.96 71 1/11/2025
3.0.95 70 1/10/2025
3.0.94 53 1/10/2025
3.0.93 72 1/10/2025
3.0.92 71 1/10/2025
3.0.91 68 1/10/2025
3.0.90 108 1/3/2025
3.0.89 101 1/3/2025
3.0.88 84 1/3/2025
3.0.87 81 1/3/2025
3.0.86 85 1/2/2025
3.0.85 80 1/2/2025
3.0.84 89 1/2/2025
3.0.83 82 1/2/2025
3.0.82 98 1/1/2025
3.0.81 87 1/1/2025
3.0.80 90 1/1/2025
3.0.79 86 1/1/2025
3.0.78 99 1/1/2025
3.0.77 90 1/1/2025
3.0.76 103 12/31/2024
3.0.75 87 12/31/2024
3.0.74 99 12/31/2024
3.0.73 105 12/31/2024
3.0.72 100 12/31/2024
3.0.71 82 12/31/2024
3.0.70 77 12/31/2024
3.0.69 77 12/31/2024
3.0.68 85 12/31/2024
3.0.67 86 12/31/2024
3.0.66 80 12/30/2024
3.0.65 77 12/28/2024
3.0.64 87 12/28/2024
3.0.63 80 12/27/2024
3.0.62 82 12/27/2024
3.0.61 81 12/24/2024
3.0.60 84 12/24/2024
3.0.59 72 12/24/2024
3.0.58 82 12/24/2024
3.0.57 73 12/24/2024
3.0.56 86 12/24/2024
3.0.55 76 12/24/2024
3.0.54 86 12/24/2024
3.0.53 79 12/24/2024
3.0.52 83 12/23/2024
3.0.51 82 12/23/2024
3.0.50 87 12/23/2024
3.0.49 87 12/23/2024
3.0.48 86 12/23/2024
3.0.47 86 12/22/2024
3.0.46 84 12/22/2024
3.0.45 84 12/22/2024
3.0.44 80 12/22/2024
3.0.43 86 12/22/2024
3.0.42 86 12/21/2024
3.0.41 84 12/21/2024
3.0.40 80 12/21/2024
3.0.39 80 12/21/2024
3.0.38 78 12/21/2024
3.0.37 86 12/21/2024
3.0.36 81 12/21/2024
3.0.35 81 12/20/2024
3.0.34 84 12/20/2024
3.0.33 96 12/20/2024
3.0.32 82 12/20/2024
3.0.31 84 12/20/2024
3.0.30 88 12/19/2024
3.0.29 89 12/19/2024
3.0.28 80 12/19/2024
3.0.27 81 12/19/2024
3.0.26 92 12/18/2024
3.0.25 80 12/18/2024
3.0.24 78 12/16/2024
3.0.23 74 12/16/2024
3.0.22 80 12/10/2024
3.0.21 83 12/10/2024
3.0.20 84 12/9/2024
3.0.19 85 12/9/2024
3.0.18 87 12/9/2024
3.0.17 82 12/9/2024
3.0.16 86 12/9/2024
3.0.15 89 12/7/2024
3.0.14 94 12/6/2024
3.0.13 85 12/6/2024
3.0.12 83 12/6/2024
3.0.11 84 12/6/2024
3.0.10 91 12/6/2024
3.0.9 83 12/6/2024
3.0.8 88 12/6/2024
3.0.7 87 12/6/2024
3.0.6 90 12/6/2024
3.0.5 91 12/6/2024
3.0.4 90 12/5/2024
3.0.3 86 12/5/2024
3.0.2 85 12/4/2024
3.0.1 93 12/4/2024