Computes the distance between two entities

Namespace:  Cloudster.Samples.VectorND
Assembly:  Cloudster.Samples.VectorND.Role (in Cloudster.Samples.VectorND.Role.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public double Compute(
	VectorNDEntity entity1,
	VectorNDEntity entity2
)
Visual Basic (Declaration)
Public Function Compute ( _
	entity1 As VectorNDEntity, _
	entity2 As VectorNDEntity _
) As Double
Visual C++
public:
virtual double Compute(
	VectorNDEntity^ entity1, 
	VectorNDEntity^ entity2
) sealed

Parameters

entity1
Type: Cloudster.Samples.VectorND..::.VectorNDEntity
The first entity
entity2
Type: Cloudster.Samples.VectorND..::.VectorNDEntity
The second entity

Return Value

The resulting distance, norm of the difference of the two vectors

Implements

IDistance<(Of <(TEntity>)>)..::.Compute(TEntity, TEntity)

See Also