aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-02-05 19:51:31 -0500
committerPaul Duncan <pabs@pablotron.org>2019-02-05 19:51:31 -0500
commitea56aca669d38f9f810d48f83556fe02c66d54c1 (patch)
treece5d9a0aa67943cb0914e1eab150d96e2d626b31 /src/main.c
parent524d4c9b225f185c90392f206992ea7e53cb4f1c (diff)
downloadkmeans-ea56aca669d38f9f810d48f83556fe02c66d54c1.tar.bz2
kmeans-ea56aca669d38f9f810d48f83556fe02c66d54c1.zip
add bounds to training output
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 386af16..4c63d16 100644
--- a/src/main.c
+++ b/src/main.c
@@ -241,9 +241,10 @@ ctx_save_png(
static void
ctx_best_print(
const ctx_t * const ctx,
+ const float * const bounds,
FILE * const fh
) {
- if (!km_set_print(&(ctx->best[ctx_get_max_best(ctx) - 1].set), fh)) {
+ if (!km_set_print(&(ctx->best[ctx_get_max_best(ctx) - 1].set), bounds, fh)) {
die("km_set_print()");
}
}
@@ -301,7 +302,7 @@ int main(int argc, char *argv[]) {
ctx_best_sort(&ctx);
// print best
- ctx_best_print(&ctx, stdout);
+ ctx_best_print(&ctx, set.bounds, stdout);
if (png_path) {
// save png of normalized data set and best clusters