/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false. /// </returns> public bool Equals(NoisePoint other) { if (!Frequency.Equals(other.Frequency)) { return(false); } if (!InverseGainSquared.Equals(other.InverseGainSquared)) { return(false); } return(true); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { return((Frequency.GetHashCode() * 13) ^ InverseGainSquared.GetHashCode()); }