/* * Created by: Milton Garcia Borroto * Created: 1/5/2007 * Comments by: Miguel Angel Medina P�rez (migue.cu@gmail.com) */ namespace PatternRecognition.Core { /// <summary> /// Represents a dissimilarity comparison function. /// </summary> /// <remarks> /// <para> /// A dissimilarity is a function that compares objects and returns a similarity degree of these objects. The lower returned value, the greater similarity. /// </para> /// </remarks> /// <typeparam name="T"> /// The type of the objects that can be compared. /// </typeparam> public interface IDissimilarity <T> { /// <summary> /// Compute the dissimilarity between two objects. /// </summary> /// <param name="source"> /// One object to compare. /// </param> /// <param name="compareTo"> /// One object to compare with. /// </param> /// <returns> /// The dissimilarity value. /// </returns> double Compare(T source, T compareTo); } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)