Skip to main content
interface AggregateKMeansResponse
count: number;
counts: number[];
info: Record<string, string>;
means: number[][];
num_iters: number;
request_time_secs?: number;
rms_dist: number;
rms_dists: number[];
tolerance: number;
count: number

The total count of all the clusters - will be the size of the input table.

counts: number[]

The number of elements in the cluster closest the corresponding k-means values.

info: Record<string, string>

Additional information.

means: number[][]

The k-mean values found.

num_iters: number

The number of iterations the algorithm executed before it quit.

request_time_secs?: number

Server-reported request time in seconds, when it sent one

rms_dist: number

The sum of all the rms_dists - the value the k-means algorithm is attempting to minimize.

rms_dists: number[]

The root mean squared distance of the elements in the cluster for each of the k-means values.

tolerance: number

The distance between the last two iterations of the algorithm before it quit.