//------------------------------------------------------------------------------------------------ /// <summary> /// Checks equality between the current focal element and the given one. /// </summary> /// <param name="f">The focal element to compare to.</param> /// <returns>Returns true if both elements of the focal elements are equal, false otherwise.</returns> public bool Equals(FocalElement <TElement> f) { return(this.Element.Equals(f.Element)); }
//------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------ /* * Methods */ /// <summary> /// Checks if the given focal element is compatible with the current one. (This is used /// for combination of mass functions for instance as they may be defined on different /// frames of discernment.) /// </summary> /// <param name="f">The focal element to check compatibility with.</param> /// <returns>Returns true if the given focal element is compatible, false otherwise.</returns> public bool IsCompatible(FocalElement <TElement> f) { return(this.Element.IsCompatible(f.Element)); }