diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-02-05 19:51:31 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-02-05 19:51:31 -0500 |
commit | ea56aca669d38f9f810d48f83556fe02c66d54c1 (patch) | |
tree | ce5d9a0aa67943cb0914e1eab150d96e2d626b31 /src/main.c | |
parent | 524d4c9b225f185c90392f206992ea7e53cb4f1c (diff) | |
download | kmeans-ea56aca669d38f9f810d48f83556fe02c66d54c1.tar.bz2 kmeans-ea56aca669d38f9f810d48f83556fe02c66d54c1.zip |
add bounds to training output
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |