Soenneker.Utils.Strings.HammingDistance 3.0.298

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