diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-08-19 16:06:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-19 16:06:14 -0400 |
| commit | ff2f3108ee62fc8c943b1d83ec6312d6696990d8 (patch) | |
| tree | 80f1823f901bdadad6af4fce8d36d9b73f79c0fb /Emby.Common.Implementations/TextEncoding/NLangDetect/ProbVector.cs | |
| parent | 6b077f3f8467caa26388a25e6acd1990d286b5d0 (diff) | |
| parent | c58db90c950c766321615eca236557d87b8d1b74 (diff) | |
Merge pull request #2832 from MediaBrowser/beta
Beta
Diffstat (limited to 'Emby.Common.Implementations/TextEncoding/NLangDetect/ProbVector.cs')
| -rw-r--r-- | Emby.Common.Implementations/TextEncoding/NLangDetect/ProbVector.cs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Emby.Common.Implementations/TextEncoding/NLangDetect/ProbVector.cs b/Emby.Common.Implementations/TextEncoding/NLangDetect/ProbVector.cs deleted file mode 100644 index c5a20dbf0a..0000000000 --- a/Emby.Common.Implementations/TextEncoding/NLangDetect/ProbVector.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace NLangDetect.Core -{ - public class ProbVector - { - private readonly Dictionary<int, double> _dict = new Dictionary<int, double>(); - - public double this[int key] - { - get - { - double value; - - return _dict.TryGetValue(key, out value) ? value : 0.0; - } - - set - { - if (Math.Abs(value) < double.Epsilon) - { - if (_dict.ContainsKey(key)) - { - _dict.Remove(key); - } - - return; - } - - _dict[key] = value; - } - } - } -} |
