Class EuclideanDistance
An abstract base class for the calculation of the distance of two entities (points, sequences etc.)
Inheritance
System.Object
EuclideanDistance
Implements
IDistance<System.Double[]>
Namespace: SigStat.Common.Algorithms.Distances
Assembly: SigStat.Common.dll
Syntax
public class EuclideanDistance : object, IDistance<double[]>
Methods
| Improve this Doc View SourceCalculate(Double[], Double[])
Gets the Euclidean 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 Euclidean distance between x and y. |