Soenneker.Utils.Strings.HammingDistance 3.0.81

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.81
                    
NuGet\Install-Package Soenneker.Utils.Strings.HammingDistance -Version 3.0.81
                    
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.81" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Strings.HammingDistance" Version="3.0.81" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.Strings.HammingDistance" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.Strings.HammingDistance --version 3.0.81
                    
#r "nuget: Soenneker.Utils.Strings.HammingDistance, 3.0.81"
                    
#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.
#:package Soenneker.Utils.Strings.HammingDistance@3.0.81
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.81
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.81
                    
Install as a Cake Tool

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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.298 73 6/27/2025
3.0.297 144 5/27/2025
3.0.296 150 5/22/2025
3.0.295 149 5/7/2025
3.0.294 139 5/5/2025
3.0.293 145 5/5/2025
3.0.292 142 5/5/2025
3.0.290 166 4/8/2025
3.0.289 160 4/8/2025
3.0.288 152 4/8/2025
3.0.287 166 4/8/2025
3.0.286 152 4/8/2025
3.0.285 157 4/7/2025
3.0.284 160 4/7/2025
3.0.283 162 4/7/2025
3.0.282 163 4/7/2025
3.0.281 171 4/7/2025
3.0.280 162 4/7/2025
3.0.279 161 4/6/2025
3.0.278 159 4/6/2025
3.0.277 164 4/6/2025
3.0.276 139 4/6/2025
3.0.275 138 4/6/2025
3.0.274 143 4/6/2025
3.0.273 105 4/6/2025
3.0.272 109 4/6/2025
3.0.271 84 4/5/2025
3.0.270 97 4/5/2025
3.0.269 93 4/5/2025
3.0.268 92 4/5/2025
3.0.267 158 4/4/2025
3.0.266 149 4/1/2025
3.0.265 162 3/31/2025
3.0.264 171 3/31/2025
3.0.263 87 3/29/2025
3.0.262 469 3/25/2025
3.0.261 478 3/25/2025
3.0.260 117 3/21/2025
3.0.259 140 3/21/2025
3.0.258 149 3/18/2025
3.0.257 154 3/18/2025
3.0.256 73 3/15/2025
3.0.255 72 3/15/2025
3.0.254 157 3/12/2025
3.0.253 165 3/12/2025
3.0.252 165 3/11/2025
3.0.251 165 3/11/2025
3.0.250 190 3/11/2025
3.0.249 174 3/11/2025
3.0.248 171 3/11/2025
3.0.247 220 3/7/2025
3.0.246 214 3/7/2025
3.0.245 101 3/2/2025
3.0.244 96 3/2/2025
3.0.243 90 3/2/2025
3.0.242 94 3/1/2025
3.0.241 100 3/1/2025
3.0.240 97 3/1/2025
3.0.239 103 3/1/2025
3.0.238 91 3/1/2025
3.0.237 92 3/1/2025
3.0.236 96 3/1/2025
3.0.235 106 2/25/2025
3.0.234 95 2/25/2025
3.0.233 104 2/25/2025
3.0.232 98 2/25/2025
3.0.231 110 2/23/2025
3.0.230 94 2/23/2025
3.0.229 96 2/22/2025
3.0.228 99 2/22/2025
3.0.227 107 2/22/2025
3.0.226 111 2/22/2025
3.0.225 97 2/22/2025
3.0.224 99 2/21/2025
3.0.223 110 2/21/2025
3.0.222 100 2/19/2025
3.0.221 103 2/19/2025
3.0.220 101 2/19/2025
3.0.219 107 2/18/2025
3.0.218 100 2/18/2025
3.0.217 99 2/18/2025
3.0.216 110 2/14/2025
3.0.215 108 2/14/2025
3.0.214 108 2/13/2025
3.0.213 103 2/12/2025
3.0.212 113 2/12/2025
3.0.211 115 2/12/2025
3.0.210 106 2/12/2025
3.0.209 92 2/12/2025
3.0.208 111 2/12/2025
3.0.207 101 2/11/2025
3.0.206 109 2/11/2025
3.0.205 107 2/11/2025
3.0.204 127 2/11/2025
3.0.203 112 2/11/2025
3.0.202 103 2/10/2025
3.0.201 107 2/10/2025
3.0.200 123 2/10/2025
3.0.199 106 2/10/2025
3.0.198 103 2/10/2025
3.0.197 112 2/9/2025
3.0.196 106 2/9/2025
3.0.195 100 2/8/2025
3.0.194 105 2/8/2025
3.0.193 97 2/7/2025
3.0.192 93 2/7/2025
3.0.191 98 2/7/2025
3.0.190 111 2/7/2025
3.0.188 113 2/7/2025
3.0.187 99 2/7/2025
3.0.186 101 2/7/2025
3.0.185 105 2/6/2025
3.0.184 108 2/5/2025
3.0.183 104 2/5/2025
3.0.182 97 2/5/2025
3.0.181 102 2/5/2025
3.0.180 97 2/5/2025
3.0.179 96 2/5/2025
3.0.178 111 2/5/2025
3.0.177 102 1/28/2025
3.0.176 105 1/28/2025
3.0.175 89 1/28/2025
3.0.174 97 1/28/2025
3.0.173 98 1/27/2025
3.0.172 95 1/27/2025
3.0.171 97 1/27/2025
3.0.170 102 1/26/2025
3.0.169 94 1/26/2025
3.0.168 95 1/26/2025
3.0.167 92 1/26/2025
3.0.166 88 1/25/2025
3.0.165 97 1/25/2025
3.0.164 94 1/25/2025
3.0.163 98 1/25/2025
3.0.162 94 1/25/2025
3.0.161 91 1/24/2025
3.0.160 91 1/24/2025
3.0.159 103 1/24/2025
3.0.158 96 1/24/2025
3.0.157 96 1/24/2025
3.0.156 101 1/24/2025
3.0.155 94 1/24/2025
3.0.154 95 1/24/2025
3.0.153 92 1/23/2025
3.0.152 103 1/21/2025
3.0.151 106 1/21/2025
3.0.150 100 1/21/2025
3.0.149 93 1/21/2025
3.0.148 100 1/21/2025
3.0.147 95 1/21/2025
3.0.146 94 1/21/2025
3.0.145 95 1/21/2025
3.0.144 96 1/21/2025
3.0.143 91 1/21/2025
3.0.142 104 1/20/2025
3.0.141 97 1/20/2025
3.0.140 100 1/20/2025
3.0.139 95 1/20/2025
3.0.138 96 1/20/2025
3.0.137 103 1/20/2025
3.0.136 100 1/20/2025
3.0.135 101 1/20/2025
3.0.134 93 1/19/2025
3.0.133 98 1/19/2025
3.0.132 88 1/19/2025
3.0.131 93 1/19/2025
3.0.130 85 1/19/2025
3.0.129 96 1/19/2025
3.0.128 97 1/18/2025
3.0.127 94 1/18/2025
3.0.126 95 1/17/2025
3.0.125 91 1/17/2025
3.0.124 97 1/17/2025
3.0.123 87 1/17/2025
3.0.122 90 1/16/2025
3.0.121 84 1/16/2025
3.0.120 94 1/16/2025
3.0.119 87 1/16/2025
3.0.118 91 1/16/2025
3.0.117 100 1/16/2025
3.0.116 91 1/16/2025
3.0.115 98 1/16/2025
3.0.114 97 1/15/2025
3.0.113 83 1/15/2025
3.0.112 86 1/15/2025
3.0.111 90 1/15/2025
3.0.110 69 1/15/2025
3.0.109 69 1/15/2025
3.0.108 71 1/15/2025
3.0.107 60 1/15/2025
3.0.106 74 1/14/2025
3.0.105 77 1/14/2025
3.0.104 86 1/13/2025
3.0.103 90 1/13/2025
3.0.102 90 1/13/2025
3.0.101 84 1/13/2025
3.0.100 91 1/12/2025
3.0.99 88 1/11/2025
3.0.98 94 1/11/2025
3.0.97 100 1/11/2025
3.0.96 99 1/11/2025
3.0.95 100 1/10/2025
3.0.94 80 1/10/2025
3.0.93 97 1/10/2025
3.0.92 96 1/10/2025
3.0.91 100 1/10/2025
3.0.90 131 1/3/2025
3.0.89 121 1/3/2025
3.0.88 103 1/3/2025
3.0.87 102 1/3/2025
3.0.86 106 1/2/2025
3.0.85 106 1/2/2025
3.0.84 108 1/2/2025
3.0.83 103 1/2/2025
3.0.82 116 1/1/2025
3.0.81 115 1/1/2025
3.0.80 112 1/1/2025
3.0.79 106 1/1/2025
3.0.78 135 1/1/2025
3.0.77 110 1/1/2025
3.0.76 127 12/31/2024
3.0.75 119 12/31/2024
3.0.74 122 12/31/2024
3.0.73 119 12/31/2024
3.0.72 120 12/31/2024
3.0.71 106 12/31/2024
3.0.70 97 12/31/2024
3.0.69 96 12/31/2024
3.0.68 110 12/31/2024
3.0.67 106 12/31/2024
3.0.66 105 12/30/2024
3.0.65 99 12/28/2024
3.0.64 111 12/28/2024
3.0.63 97 12/27/2024
3.0.62 102 12/27/2024
3.0.61 99 12/24/2024
3.0.60 109 12/24/2024
3.0.59 88 12/24/2024
3.0.58 103 12/24/2024
3.0.57 93 12/24/2024
3.0.56 103 12/24/2024
3.0.55 96 12/24/2024
3.0.54 100 12/24/2024
3.0.53 94 12/24/2024
3.0.52 101 12/23/2024
3.0.51 102 12/23/2024
3.0.50 107 12/23/2024
3.0.49 112 12/23/2024
3.0.48 110 12/23/2024
3.0.47 110 12/22/2024
3.0.46 105 12/22/2024
3.0.45 104 12/22/2024
3.0.44 102 12/22/2024
3.0.43 106 12/22/2024
3.0.42 107 12/21/2024
3.0.41 109 12/21/2024
3.0.40 101 12/21/2024
3.0.39 105 12/21/2024
3.0.38 101 12/21/2024
3.0.37 107 12/21/2024
3.0.36 102 12/21/2024
3.0.35 104 12/20/2024
3.0.34 111 12/20/2024
3.0.33 115 12/20/2024
3.0.32 101 12/20/2024
3.0.31 103 12/20/2024
3.0.30 109 12/19/2024
3.0.29 109 12/19/2024
3.0.28 103 12/19/2024
3.0.27 99 12/19/2024
3.0.26 110 12/18/2024
3.0.25 101 12/18/2024
3.0.24 96 12/16/2024
3.0.23 99 12/16/2024
3.0.22 100 12/10/2024
3.0.21 106 12/10/2024
3.0.20 102 12/9/2024
3.0.19 105 12/9/2024
3.0.18 115 12/9/2024
3.0.17 103 12/9/2024
3.0.16 103 12/9/2024
3.0.15 105 12/7/2024
3.0.14 113 12/6/2024
3.0.13 107 12/6/2024
3.0.12 101 12/6/2024
3.0.11 109 12/6/2024
3.0.10 110 12/6/2024
3.0.9 99 12/6/2024
3.0.8 107 12/6/2024
3.0.7 104 12/6/2024
3.0.6 109 12/6/2024
3.0.5 109 12/6/2024
3.0.4 106 12/5/2024
3.0.3 102 12/5/2024
3.0.2 103 12/4/2024
3.0.1 109 12/4/2024