silhouette
silhouette(
points,labels):number[]
Defined in: src/silhouette.js:17
Calculate the silhouette values for clustered data.
Parameters
Section titled “Parameters”points
Section titled “points”number[][]
N-dimensional coordinates of points.
labels
Section titled “labels”number[]
Labels of points. This must be the same length as points,
and values must lie in [0..G-1], where G is the number of groups.
Returns
Section titled “Returns”number[]
The silhouette value for each point.
Example
Section titled “Example”silhouette([[0.25], [0.75]], [0, 0]); // => [1.0, 1.0]