Weighted items class
Inheritance: IComparable
コード例 #1
0
ファイル: WeightedItem.cs プロジェクト: zenogantner/MML-KDD
        ///
        public bool Equals(WeightedItem otherItem)
        {
            if (otherItem == null)
                return false;

            return Math.Abs(this.weight - otherItem.weight) < 0.000001;
        }
コード例 #2
0
        ///
        public bool Equals(WeightedItem otherItem)
        {
            if (otherItem == null)
            {
                return(false);
            }

            return(Math.Abs(this.weight - otherItem.weight) < 0.000001);
        }