@standardbeagle/ux-core - v0.1.0
    Preparing search index...

    Interface Cluster

    One k-means cluster: its centroid and the points assigned to it.

    Note: kmeans's current return value populates centroid but leaves points empty — callers wanting cluster membership must re-bucket against the returned centroids.

    interface Cluster {
        centroid: Point;
        points: Point[];
    }
    Index

    Properties

    Properties

    centroid: Point

    Cluster center after convergence.

    points: Point[]

    Points assigned to this cluster. May be empty in returned values.