Struct Dirac<T>
Dirac distance.
Namespace: ISynergy.Framework.Mathematics.Distances
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public struct Dirac<T> : ISimilarity<T>, ISimilarity<T, T>, IDistance<T>, IDistance<T, T> where T : IEquatable<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
View SourceClone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Distance(T, T)
Computes the distance d(x,y)
between points
x
and y
.
Declaration
public double Distance(T x, T y)
Parameters
Type | Name | Description |
---|---|---|
T | x | The first point |
T | y | The second point |
Returns
Type | Description |
---|---|
System.Double | A double-precision value representing the distance |
Similarity(T, T)
Gets a similarity measure between two points.
Declaration
public double Similarity(T x, T y)
Parameters
Type | Name | Description |
---|---|---|
T | x | The first point to be compared. |
T | y | The second point to be compared. |
Returns
Type | Description |
---|---|
System.Double | A similarity measure between x and y. |
Implements
ICloneable