Computes the centroid of a set of entities. If the centroid is not one of these entities,
creates it. The enumeration is guaranteed to be non empty.
Namespace:
CloudsterAssembly: Cloudster.CoreLib (in Cloudster.CoreLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
TEntity Compute( IEnumerable<TEntity> entities, out bool isNew ) |
Visual Basic (Declaration) |
---|
Function Compute ( _ entities As IEnumerable(Of TEntity), _ <OutAttribute> ByRef isNew As Boolean _ ) As TEntity |
Visual C++ |
---|
TEntity Compute( IEnumerable<TEntity>^ entities, [OutAttribute] bool% isNew ) |
Parameters
- entities
- Type: System.Collections.Generic..::.IEnumerable<(Of <(TEntity>)>)
The set of entities
- isNew
- Type:
System..::.Boolean
%
true if the cluster was created during computation.