Compute the centroid of a given enumerable of entities. There must be at least one vector.

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 VectorNDEntity Compute(
	IEnumerable<VectorNDEntity> entities,
	out bool isNew
)
Visual Basic (Declaration)
Public Function Compute ( _
	entities As IEnumerable(Of VectorNDEntity), _
	<OutAttribute> ByRef isNew As Boolean _
) As VectorNDEntity
Visual C++
public:
virtual VectorNDEntity^ Compute(
	IEnumerable<VectorNDEntity^>^ entities, 
	[OutAttribute] bool% isNew
) sealed

Parameters

entities
Type: System.Collections.Generic..::.IEnumerable<(Of <(VectorNDEntity>)>)
The enumerable of entities of which to compute the centroid
isNew
Type: System..::.Boolean %
Always true.

Return Value

The computed centroid entity identifier

Implements

ICentroidComputer<(Of <(TEntity>)>)..::.Compute(IEnumerable<(Of <(TEntity>)>), Boolean%)

See Also