17 static int extend(
struct Cluster *,
int);
18 static int all_zero(
struct Cluster *,
int);
37 for (band = 0; band < C->
nbands; band++)
50 for (band = 0; band < C->
nbands; band++) {
73 return extend(C, n) ? 0 : -1;
116 for (next = cur; next < n; next++) {
117 if (!all_zero(C, next)) {
119 for (band = 0; band < C->
nbands; band++)
127 static int all_zero(
struct Cluster *C,
int i)
131 for (band = 0; band < C->
nbands; band++)
137 static int extend(
struct Cluster *C,
int n)
143 for (band = 0; band < C->
nbands; band++) {
#define Rast_is_d_null_value(dcellVal)
void * I_realloc(void *, size_t)
int I_cluster_begin_point_set(struct Cluster *C, int n)
Begin point set.
int I_cluster_point_part(struct Cluster *C, DCELL x, int band, int n)
?
int I_cluster_end_point_set(struct Cluster *C, int n)
?
int I_cluster_point(struct Cluster *C, DCELL *x)
Adds the point x to the list of data points to be "clustered".