Exemple #1
0
        public void Fastenshtein()
        {
            for (int i = 0; i < words.Length; i++)
            {
                var levenshtein = new global::Fastenshtein.Levenshtein(words[i]);

                for (int j = 0; j < words.Length; j++)
                {
                    levenshtein.DistanceFrom(words[j]);
                }
            }
        }
        public void Fastenshtein()
        {
            Parallel.For(0, words.Length, i =>
            {
                var levenshtein = new global::Fastenshtein.Levenshtein(words[i]);

                for (int j = 0; j < words.Length; j++)
                {
                    levenshtein.DistanceFrom(words[j]);
                }
            });
        }
        public void Fastenshtein()
        {
            var levenshtein = new global::Fastenshtein.Levenshtein("test");

            levenshtein.DistanceFrom("test");
        }
Exemple #4
0
        public int Fastenshtein()
        {
            var levenshtein = new global::Fastenshtein.Levenshtein("test");

            return(levenshtein.DistanceFrom("test"));
        }