#include #include #include #include /* * safe to call only during checkpoint(1) */ int print_seed_means(FILE * fd, struct Cluster *C) { int band; int c; fprintf(fd, _("\ninitial means for each band\n\n")); for (c = 0; c < C->nclasses; c++) { fprintf(fd, _("class %-3d "), c + 1); for (band = 0; band < C->nbands; band++) fprintf(fd, " %g", C->mean[band][c]); fprintf(fd, "\n"); } fprintf(fd, "\n"); return 0; }