Class ManhattanDistance
An abstract base class for the calculation of the distance of two entities (points, sequences etc.)
Inheritance
System.Object
ManhattanDistance
Implements
IDistance<System.Double[]>
Namespace: SigStat.Common.Algorithms.Distances
Assembly: SigStat.Common.dll
Syntax
public class ManhattanDistance : object, IDistance<double[]>
Methods
| Improve this Doc View SourceCalculate(Double[], Double[])
Gets the Manhattan distance between two points.
Declaration
public double Calculate(double[] x, double[] y)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x | A point in space. |
System.Double[] | y | A point in space. |
Returns
Type | Description |
---|---|
System.Double | The Manhattan distance between x and y. |