#include <grass/imagery.h>
#include <grass/gis.h>
#include <grass/glocale.h>


/*
 * 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, " %6.2f", C->mean[band][c]);
	fprintf (fd, "\n");
    }
    fprintf (fd, "\n");

    return 0;
}
