Click or drag to resize

BasisDistance Method

Computes the distance between vectors having the specified coordinates.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public double Distance(
	DoubleMatrix left,
	DoubleMatrix right
)

Parameters

left
Type: Novacta.AnalyticsDoubleMatrix
The coordinates of the first vector.
right
Type: Novacta.AnalyticsDoubleMatrix
The coordinates of the second vector.

Return Value

Type: Double
The distance between the vectors having as coordinates left and right, respectively.
Exceptions
ExceptionCondition
ArgumentNullExceptionleft is null.
-or-
right is null.
ArgumentOutOfRangeExceptionleft is not a row vector.
-or-
left has Count not equal to the Dimension of the Basis.
-or-
right is not a row vector.
-or-
right has Count not equal to the Dimension of the Basis.
Remarks

Coordinates must be passed as row vectors. Let LaTeX equation be the matrix representation of this instance, and let LaTeX equation and LaTeX equation be left and right, respectively. Then method Distance(DoubleMatrix, DoubleMatrix) returns

LaTeX equation

where LaTeX equation is the norm defined by basis LaTeX equation.

See Also