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)); }
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)); }