Interface ISimilarity<T, U>
Common interface for similarity measures.
Namespace: ISynergy.Framework.Mathematics.Distances.Base
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public interface ISimilarity<T, U>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the first element to be compared. |
| U | The type of the second element to be compared. |
Methods
View SourceSimilarity(T, U)
Gets a similarity measure between two points.
Declaration
double Similarity(T x, U y)
Parameters
| Type | Name | Description |
|---|---|---|
| T | x | The first point to be compared. |
| U | y | The second point to be compared. |
Returns
| Type | Description |
|---|---|
| System.Double | A similarity measure between x and y. |