Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/TVector
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include | #include "Math/Vector.h" |
static void GenerateClusterCenters
(
TArray < TVector < T > > & Clusters,
const TArray < TVector < T > > & Points,
int32 NumIterations,
int32 NumConnectionsToBeValid
)
Remarks
Given a current set of cluster centers, a set of points, iterate N times to move clusters to be central.
Parameters
| Name | Description |
|---|---|
| Clusters | Reference to array of Clusters. |
| Points | Set of points. |
| NumIterations | Number of iterations. |
| NumConnectionsToBeValid | Sometimes you will have long strings that come off the mass of points which happen to have been chosen as Cluster starting points. You want to be able to disregard those. |