Exemplo n.º 1
0
        public double QGramDistance(StringProfile other)
        {
            if (_ks != other._ks)
            {
                throw new Exception("Profiles were not created using the same kshingling object!");
            }

            return(Vector.QGram(other.Vector));
        }
Exemplo n.º 2
0
        public double CosineSimilarity(StringProfile other)
        {
            if (_ks != other._ks)
            {
                throw new Exception("Profiles were not created using the same kshingling object!");
            }

            return(Vector.CosineSimilarity(other.Vector));
        }