Struct Canberra
Canberra distance.
Namespace: ISynergy.Framework.Mathematics.Distances
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public struct Canberra : IDistance<double[]>, IDistance<double[], double[]>
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(Double[], Double[])
Computes the distance d(x,y) between points
x and y.
Declaration
public double Distance(double[] x, double[] y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | x | The first point |
| System.Double[] | y | The second point |
Returns
| Type | Description |
|---|---|
| System.Double | A double-precision value representing the distance |
Implements
ICloneable