-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi,
First off, love your package, it's helped me out a lot!
Secondly I was using your package to run some kmeans clustering and I noticed that the types published under the @types/skmeans package are not correct.
Specifically, the skmeans function is typed as returning Data and Data is typed as follows
interface Data {
it: number;
k: number;
centroids: number;
idxs: number[];
test: (x: number, point?: (x1: number, x2: number) => number) => void;
}But centroids: number is not correct. As far as I see the centroids property returned by skmeans returns an array of centroids, so the correct type should be centroids: number[] | number[][]
Undistraction
Metadata
Metadata
Assignees
Labels
No labels