Returns distance between two N-dimensional double vectors.

Namespace:  AForge.Math.Metrics
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public double GetDistance(
	double[] p,
	double[] q
)

Parameters

p
Type: array< System..::.Double >[]()[]
1st point vector.
q
Type: array< System..::.Double >[]()[]
2nd point vector.

Return Value

Returns Manhattan distance between two supplied vectors.

Implements

IDistance..::.GetDistance(array<Double>[]()[], array<Double>[]()[])

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThrown if the two vectors are of different dimensions (if specified array have different length).

See Also