Similarity measure for short strings such as person names.

Inheritance: StringDistance
示例#1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (null == obj || this.GetType() != obj.GetType())
            {
                return(false);
            }

            JaroWinklerDistance o = (JaroWinklerDistance)obj;

            return(J2N.BitConversion.SingleToInt32Bits(o.threshold) == J2N.BitConversion.SingleToInt32Bits(this.threshold));
        }
示例#2
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (null == obj || this.GetType() != obj.GetType())
            {
                return(false);
            }

            JaroWinklerDistance o = (JaroWinklerDistance)obj;

            return(Number.FloatToIntBits(o.threshold) == Number.FloatToIntBits(this.threshold));
        }