예제 #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));
        }
예제 #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));
        }