Soenneker.Utils.Strings.HammingDistance 3.0.279

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