1 #include <grass/cluster.h>
12 for (
class = 0;
class < C->nclasses;
class++)
13 for (band = 0; band < C->nbands; band++)
14 C->sum2[band][
class] = 0;
16 for (p = 0; p < C->npoints; p++) {
20 for (band = 0; band < C->nbands; band++) {
21 q = C->points[band][p];
22 C->sum2[band][
class] += q *
q;
int I_cluster_sum2(struct Cluster *C)