Soenneker.Utils.Strings.HammingDistance 3.0.141

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