34 double separation,
int min_class_size,
35 int (*checkpoint) (),
int *interrupted)
53 if (min_class_size <= 0)
55 if (min_class_size < 2)
60 if (convergence <= 0.0)
87 for (C->iteration = 1;; C->iteration++) {
100 C->percent_stable = (C->npoints - changes) * 100.0;
101 C->percent_stable /= (double)C->npoints;
104 (*checkpoint) (C, 3);
106 if (C->iteration >= iterations)
109 if (C->percent_stable < convergence)
118 (*checkpoint) (C, 4);
int I_cluster_sum2(struct Cluster *)
Compute sum of squares for each class.
int I_cluster_reassign(struct Cluster *, int *)
?
int I_cluster_exec_allocate(struct Cluster *)
Allocate Cluster structure.
int I_cluster_signatures(struct Cluster *)
Create signatures.
int I_cluster_exec(struct Cluster *C, int maxclass, int iterations, double convergence, double separation, int min_class_size, int(*checkpoint)(), int *interrupted)
int I_cluster_means(struct Cluster *)
Calculate means value.
int I_cluster_distinct(struct Cluster *, double)
Get distinct value.
int I_cluster_assign(struct Cluster *, int *)
Assign cluster.
int I_cluster_merge(struct Cluster *)
?
int I_cluster_reclass(struct Cluster *, int)
Reclass data.
void G_warning(const char *,...) __attribute__((format(printf