From 42a5ea32a5bbba10b112a601ea8f34412842f1c3 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 5 Feb 2019 11:08:51 -0500 Subject: use openmp, s/silouette/silhouette/, move row_map allocation outside of km_solve() --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 8bae71c..bc8c1f1 100644 --- a/src/main.c +++ b/src/main.c @@ -41,7 +41,7 @@ typedef struct { struct { float distance, - silouette, + silhouette, cluster_size; size_t num_empty; } rows[MAX_CLUSTERS - 2]; @@ -163,7 +163,7 @@ find_on_data( const size_t ofs = data->num_clusters - 2; ctx->rows[ofs].distance += data->distance_sum; - ctx->rows[ofs].silouette += data->silouette; + ctx->rows[ofs].silhouette += data->silhouette; ctx->rows[ofs].cluster_size += data->mean_cluster_size; ctx->rows[ofs].num_empty += data->num_empty_clusters; } -- cgit v1.2.3