Navigation
API > API/Runtime > API/Runtime/GeometryCore
| Name | FClusterKMeans |
| Type | struct |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Clustering/KMeans.h |
| Include Path | #include "Clustering/KMeans.h" |
Syntax
struct FClusterKMeans
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ClusterIDs | TArray< int32 > | Outputs. | Clustering/KMeans.h | |
| ClusterSizes | TArray< std::atomic< int32 > > | Number of points in each cluster. | Clustering/KMeans.h | |
| MaxIterations | int32 | Parameters. | Clustering/KMeans.h | |
| RandomSeed | int32 | Random Seed used to initialize clustering (if InitialCenters are not provided) | Clustering/KMeans.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 ComputeClusters
(
TArrayView< const TVectorType > PointsToCluster, |
Compute the K-Means clustering of FVector points | Clustering/KMeans.h | |
| Clustering/KMeans.h | |||
void GetUniformSpacedInitialCenters
(
TArrayView< const TVectorType > PointsToCluster, |
Helper function to generate (approximately) uniform-spaced initial clusters centers, which can be passed to ComputeClusters. | Clustering/KMeans.h |