From f496f3f1ce5bd068930382f7516494abdbf62489 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 4 Feb 2019 09:36:52 -0500 Subject: add kmeans++ method --- km.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'km.h') diff --git a/km.h b/km.h index 866e941..d8fe225 100644 --- a/km.h +++ b/km.h @@ -189,12 +189,15 @@ _Bool km_load_path( ); typedef enum { - // init cluster set by picking random centroids + // rand: init cluster set by picking random centroids KM_INIT_TYPE_RAND, - // init cluster set by picking random rows from set + // forgy: init cluster set by picking random rows from set KM_INIT_TYPE_FORGY, + // kmeans++: ... + KM_INIT_TYPE_KMEANS, + KM_INIT_TYPE_LAST, } km_init_type_t; -- cgit v1.2.3