Interface ISimilarity<T, TU>
Common interface for similarity measures.
Assembly: Mars.Numerics.dll
Syntax
public interface ISimilarity<in T, in TU>
Type Parameters
Name |
Description |
T |
The type of the first element to be compared. |
TU |
The type of the second element to be compared. |
Methods
|
Improve this Doc
View Source
Similarity(T, TU)
Gets a similarity measure between two points.
Declaration
double Similarity(T x, TU y)
Parameters
Type |
Name |
Description |
T |
x |
The first point to be compared. |
TU |
y |
The second point to be compared. |
Returns
Type |
Description |
System.Double |
A similarity measure between x and y. |
Extension Methods