Soenneker.Utils.Strings.HammingDistance 3.0.299

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.299
                    
NuGet\Install-Package Soenneker.Utils.Strings.HammingDistance -Version 3.0.299
                    
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.299" />
                    
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.299" />
                    
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.299
                    
#r "nuget: Soenneker.Utils.Strings.HammingDistance, 3.0.299"
                    
#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.299
                    
#: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.299
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.Strings.HammingDistance&version=3.0.299
                    
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.300 173 9/3/2025
3.0.299 142 8/11/2025
3.0.298 97 6/27/2025
3.0.297 171 5/27/2025
3.0.296 173 5/22/2025
3.0.295 166 5/7/2025
3.0.294 157 5/5/2025
3.0.293 161 5/5/2025
3.0.292 158 5/5/2025
3.0.290 191 4/8/2025
3.0.289 187 4/8/2025
3.0.288 179 4/8/2025
3.0.287 191 4/8/2025
3.0.286 171 4/8/2025
3.0.285 183 4/7/2025
3.0.284 187 4/7/2025
3.0.283 168 4/7/2025
3.0.282 193 4/7/2025
3.0.281 200 4/7/2025
3.0.280 179 4/7/2025
3.0.279 183 4/6/2025
3.0.278 180 4/6/2025
3.0.277 193 4/6/2025
3.0.276 155 4/6/2025
3.0.275 167 4/6/2025
3.0.274 167 4/6/2025
3.0.273 121 4/6/2025
3.0.272 137 4/6/2025
3.0.271 102 4/5/2025
3.0.270 124 4/5/2025
3.0.269 109 4/5/2025
3.0.268 109 4/5/2025
3.0.267 175 4/4/2025
3.0.266 166 4/1/2025
3.0.265 192 3/31/2025
3.0.264 202 3/31/2025
3.0.263 111 3/29/2025
3.0.262 501 3/25/2025
3.0.261 497 3/25/2025
3.0.260 145 3/21/2025
3.0.259 158 3/21/2025
3.0.258 175 3/18/2025
3.0.257 176 3/18/2025
3.0.256 96 3/15/2025
3.0.255 89 3/15/2025
3.0.254 175 3/12/2025
3.0.253 191 3/12/2025
3.0.252 182 3/11/2025
3.0.251 183 3/11/2025
3.0.250 221 3/11/2025
3.0.249 195 3/11/2025
3.0.248 194 3/11/2025
3.0.247 242 3/7/2025
3.0.246 228 3/7/2025
3.0.245 126 3/2/2025
3.0.244 123 3/2/2025
3.0.243 104 3/2/2025
3.0.242 108 3/1/2025
3.0.241 125 3/1/2025
3.0.240 124 3/1/2025
3.0.239 128 3/1/2025
3.0.238 106 3/1/2025
3.0.237 107 3/1/2025
3.0.236 118 3/1/2025
3.0.235 120 2/25/2025
3.0.234 110 2/25/2025
3.0.233 130 2/25/2025
3.0.232 123 2/25/2025
3.0.231 134 2/23/2025
3.0.230 111 2/23/2025
3.0.229 102 2/22/2025
3.0.228 124 2/22/2025
3.0.227 131 2/22/2025
3.0.226 120 2/22/2025
3.0.225 112 2/22/2025
3.0.224 119 2/21/2025
3.0.223 122 2/21/2025
3.0.222 127 2/19/2025
3.0.221 123 2/19/2025
3.0.220 126 2/19/2025
3.0.219 135 2/18/2025
3.0.218 115 2/18/2025
3.0.217 122 2/18/2025
3.0.216 130 2/14/2025
3.0.215 124 2/14/2025
3.0.214 123 2/13/2025
3.0.213 120 2/12/2025
3.0.212 142 2/12/2025
3.0.211 142 2/12/2025
3.0.210 127 2/12/2025
3.0.209 106 2/12/2025
3.0.208 139 2/12/2025
3.0.207 126 2/11/2025
3.0.206 120 2/11/2025
3.0.205 126 2/11/2025
3.0.204 140 2/11/2025
3.0.203 136 2/11/2025
3.0.202 127 2/10/2025
3.0.201 129 2/10/2025
3.0.200 132 2/10/2025
3.0.199 122 2/10/2025
3.0.198 110 2/10/2025
3.0.197 137 2/9/2025
3.0.196 138 2/9/2025
3.0.195 115 2/8/2025
3.0.194 118 2/8/2025
3.0.193 112 2/7/2025
3.0.192 98 2/7/2025
3.0.191 124 2/7/2025
3.0.190 126 2/7/2025
3.0.188 135 2/7/2025
3.0.187 114 2/7/2025
3.0.186 118 2/7/2025
3.0.185 130 2/6/2025
3.0.184 124 2/5/2025
3.0.183 133 2/5/2025
3.0.182 103 2/5/2025
3.0.181 119 2/5/2025
3.0.180 114 2/5/2025
3.0.179 113 2/5/2025
3.0.178 138 2/5/2025
3.0.177 117 1/28/2025
3.0.176 124 1/28/2025
3.0.175 106 1/28/2025
3.0.174 124 1/28/2025
3.0.173 116 1/27/2025
3.0.172 118 1/27/2025
3.0.171 127 1/27/2025
3.0.170 117 1/26/2025
3.0.169 114 1/26/2025
3.0.168 118 1/26/2025
3.0.167 108 1/26/2025
3.0.166 102 1/25/2025
3.0.165 113 1/25/2025
3.0.164 122 1/25/2025
3.0.163 119 1/25/2025
3.0.162 108 1/25/2025
3.0.161 107 1/24/2025
3.0.160 116 1/24/2025
3.0.159 128 1/24/2025
3.0.158 119 1/24/2025
3.0.157 124 1/24/2025
3.0.156 114 1/24/2025
3.0.155 119 1/24/2025
3.0.154 119 1/24/2025
3.0.153 107 1/23/2025
3.0.152 117 1/21/2025
3.0.151 119 1/21/2025
3.0.150 123 1/21/2025
3.0.149 107 1/21/2025
3.0.148 126 1/21/2025
3.0.147 110 1/21/2025
3.0.146 109 1/21/2025
3.0.145 111 1/21/2025
3.0.144 111 1/21/2025
3.0.143 105 1/21/2025
3.0.142 127 1/20/2025
3.0.141 113 1/20/2025
3.0.140 116 1/20/2025
3.0.139 110 1/20/2025
3.0.138 119 1/20/2025
3.0.137 123 1/20/2025
3.0.136 116 1/20/2025
3.0.135 126 1/20/2025
3.0.134 116 1/19/2025
3.0.133 112 1/19/2025
3.0.132 109 1/19/2025
3.0.131 118 1/19/2025
3.0.130 107 1/19/2025
3.0.129 118 1/19/2025
3.0.128 121 1/18/2025
3.0.127 119 1/18/2025
3.0.126 118 1/17/2025
3.0.125 113 1/17/2025
3.0.124 119 1/17/2025
3.0.123 102 1/17/2025
3.0.122 122 1/16/2025
3.0.121 99 1/16/2025
3.0.120 124 1/16/2025
3.0.119 103 1/16/2025
3.0.118 105 1/16/2025
3.0.117 133 1/16/2025
3.0.116 116 1/16/2025
3.0.115 112 1/16/2025
3.0.114 116 1/15/2025
3.0.113 100 1/15/2025
3.0.112 116 1/15/2025
3.0.111 118 1/15/2025
3.0.110 84 1/15/2025
3.0.109 74 1/15/2025
3.0.108 92 1/15/2025
3.0.107 76 1/15/2025
3.0.106 97 1/14/2025
3.0.105 102 1/14/2025
3.0.104 109 1/13/2025
3.0.103 118 1/13/2025
3.0.102 114 1/13/2025
3.0.101 111 1/13/2025
3.0.100 116 1/12/2025
3.0.99 103 1/11/2025
3.0.98 109 1/11/2025
3.0.97 112 1/11/2025
3.0.96 118 1/11/2025
3.0.95 122 1/10/2025
3.0.94 102 1/10/2025
3.0.93 113 1/10/2025
3.0.92 110 1/10/2025
3.0.91 125 1/10/2025
3.0.90 163 1/3/2025
3.0.89 146 1/3/2025
3.0.88 114 1/3/2025
3.0.87 118 1/3/2025
3.0.86 118 1/2/2025
3.0.85 134 1/2/2025
3.0.84 122 1/2/2025
3.0.83 107 1/2/2025
3.0.82 132 1/1/2025
3.0.81 137 1/1/2025
3.0.80 127 1/1/2025
3.0.79 120 1/1/2025
3.0.78 156 1/1/2025
3.0.77 124 1/1/2025
3.0.76 151 12/31/2024
3.0.75 140 12/31/2024
3.0.74 144 12/31/2024
3.0.73 135 12/31/2024
3.0.72 125 12/31/2024
3.0.71 133 12/31/2024
3.0.70 121 12/31/2024
3.0.69 101 12/31/2024
3.0.68 136 12/31/2024
3.0.67 121 12/31/2024
3.0.66 131 12/30/2024
3.0.65 115 12/28/2024
3.0.64 133 12/28/2024
3.0.63 112 12/27/2024
3.0.62 126 12/27/2024
3.0.61 115 12/24/2024
3.0.60 134 12/24/2024
3.0.59 104 12/24/2024
3.0.58 128 12/24/2024
3.0.57 117 12/24/2024
3.0.56 110 12/24/2024
3.0.55 117 12/24/2024
3.0.54 107 12/24/2024
3.0.53 111 12/24/2024
3.0.52 118 12/23/2024
3.0.51 114 12/23/2024
3.0.50 131 12/23/2024
3.0.49 132 12/23/2024
3.0.48 132 12/23/2024
3.0.47 123 12/22/2024
3.0.46 125 12/22/2024
3.0.45 118 12/22/2024
3.0.44 132 12/22/2024
3.0.43 128 12/22/2024
3.0.42 122 12/21/2024
3.0.41 131 12/21/2024
3.0.40 114 12/21/2024
3.0.39 127 12/21/2024
3.0.38 124 12/21/2024
3.0.37 122 12/21/2024
3.0.36 116 12/21/2024
3.0.35 132 12/20/2024
3.0.34 133 12/20/2024
3.0.33 130 12/20/2024
3.0.32 116 12/20/2024
3.0.31 117 12/20/2024
3.0.30 123 12/19/2024
3.0.29 132 12/19/2024
3.0.28 117 12/19/2024
3.0.27 114 12/19/2024
3.0.26 115 12/18/2024
3.0.25 116 12/18/2024
3.0.24 111 12/16/2024
3.0.23 121 12/16/2024
3.0.22 114 12/10/2024
3.0.21 135 12/10/2024
3.0.20 119 12/9/2024
3.0.19 124 12/9/2024
3.0.18 137 12/9/2024
3.0.17 127 12/9/2024
3.0.16 118 12/9/2024
3.0.15 122 12/7/2024
3.0.14 137 12/6/2024
3.0.13 123 12/6/2024
3.0.12 115 12/6/2024
3.0.11 128 12/6/2024
3.0.10 125 12/6/2024
3.0.9 115 12/6/2024
3.0.8 121 12/6/2024
3.0.7 118 12/6/2024
3.0.6 125 12/6/2024
3.0.5 130 12/6/2024
3.0.4 122 12/5/2024
3.0.3 118 12/5/2024
3.0.2 119 12/4/2024
3.0.1 124 12/4/2024