aboutsummaryrefslogtreecommitdiff
path: root/km.h
diff options
context:
space:
mode:
Diffstat (limited to 'km.h')
-rw-r--r--km.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/km.h b/km.h
index bc2e3a6..bd3fe41 100644
--- a/km.h
+++ b/km.h
@@ -84,14 +84,18 @@ _Bool km_set_normalize(km_set_t * const);
float *km_set_get_row(const km_set_t *, const size_t);
typedef struct {
- float d2;
+ float d2, d2_near;
size_t cluster;
} km_row_map_t;
typedef struct {
const float sum;
- const float *means;
- const float *variances;
+
+ const float silouette;
+
+ const float *mean_dists;
+ const float *mean_nears;
+
const size_t num_clusters;
} km_solve_stats_t;
@@ -114,8 +118,7 @@ typedef struct {
const km_set_t * const cluster_set;
const float distance_sum,
- mean_distance,
- mean_variance,
+ silouette,
mean_cluster_size;
const size_t num_clusters,