Member Junction
    Preparing search index...

    Framework-agnostic clustering engine. Instantiate directly: const engine = new ClusteringEngine();

    Index

    Constructors

    Methods

    • Persist a ClusterResult as a MJ: Cluster Analysis row plus child MJ: Cluster Analysis Clusters rows.

      Parameters

      • result: ClusterResult

        The result to persist.

      • config: ClusterConfig

        The config the result was produced with.

      • owner: { Name: string; UserID: string }

        Display name + ID of the owning user.

      • OptionalcontextUser: UserInfo

        User context for the save (required server-side).

      • Optionalprovider: IMetadataProvider

        Per-request metadata provider — REQUIRED on a multi-user server so the save uses the caller's connection/security context, not the process global. Falls back to the global only for single-provider callers (e.g. CLI).

      Returns Promise<string>

      The saved analysis ID, or null on failure.

    • Suggest an optimal number of clusters (K) for the given vectors using the elbow method (largest second-difference in inertia).

      Parameters

      • vectors: ClusterInputVector[]

        Vectors to analyze.

      • minK: number = 2

        Minimum K to test (default 2).

      • maxK: number = 10

        Maximum K to test (default 10, capped at vector count - 1).

      Returns number

      The suggested K, or 1 when there are too few vectors.