|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|

Go to the source code of this file.
Assign cluster.
| C | pointer to Cluster structure |
| interrupted | ? |
Definition at line 26 of file c_assign.c.
References Cluster::class, Cluster::count, G_debug(), HUGE_VAL, Cluster::mean, Cluster::nbands, Cluster::nclasses, Cluster::npoints, Cluster::points, and Cluster::sum.
Referenced by I_cluster_exec().
Initialize the cluster routines for nbands.
| C | pointer to Cluster structure |
| nbands | number of bands |
Definition at line 28 of file c_begin.c.
References _, Cluster::band_sum, Cluster::band_sum2, free(), I_free_signatures(), I_init_signatures(), malloc(), Cluster::nbands, Cluster::np, Cluster::npoints, NULL, Cluster::points, and Cluster::S.
Clear Cluster structure.
| C | pointer to Cluster structure |
Definition at line 23 of file c_clear.c.
References Cluster::band_sum, Cluster::band_sum2, Cluster::class, Cluster::count, Cluster::countdiff, I_init_signatures(), Cluster::mean, Cluster::nbands, NULL, Cluster::points, Cluster::reclass, Cluster::S, Cluster::sum, Cluster::sum2, and Cluster::sumdiff.
Get distinct value.
| C | pointer to Cluster structure |
| separation | separation value |
Definition at line 24 of file c_distinct.c.
References Cluster::count, I_cluster_separation(), I_cluster_sum2(), Cluster::merge1, Cluster::merge2, and Cluster::nclasses.
Referenced by I_cluster_exec().
?
| C | pointer to Cluster structure |
| n | ? |
Definition at line 109 of file c_point.c.
References Cluster::nbands, Cluster::npoints, and Cluster::points.
| int I_cluster_exec | ( | struct Cluster * | C, |
| int | maxclass, | ||
| int | iterations, | ||
| double | convergence, | ||
| double | separation, | ||
| int | min_class_size, | ||
| int(*)(struct Cluster *, int) | checkpoint, | ||
| int * | interrupted | ||
| ) |
| C | pointer to Cluster structure |
| maxclass | maximum number of classes |
| iterations | maximum number of iterations |
| convergence | percentage of points stable |
| separation | minimum distance between class centroids |
| min_class_size | minimum size of class |
| checkpoint | routine to be called at various steps |
| interrupted | boolean to check for interrupt |
Definition at line 32 of file c_exec.c.
References _, G_warning(), I_cluster_assign(), I_cluster_distinct(), I_cluster_exec_allocate(), I_cluster_means(), I_cluster_merge(), I_cluster_reassign(), I_cluster_reclass(), I_cluster_signatures(), I_cluster_sum2(), Cluster::nclasses, and Cluster::npoints.
Allocate Cluster structure.
| C | pointer to Cluster structure |
Definition at line 24 of file c_execmem.c.
References Cluster::class, Cluster::count, Cluster::countdiff, G_debug(), I_alloc_double2(), I_alloc_int(), I_cluster_exec_free(), Cluster::mean, Cluster::nbands, Cluster::nclasses, Cluster::npoints, NULL, Cluster::reclass, Cluster::sum, Cluster::sum2, and Cluster::sumdiff.
Referenced by I_cluster_exec().
Free allocated Cluster structure.
| C | pointer to Cluster structure |
Definition at line 53 of file c_execmem.c.
References Cluster::class, Cluster::count, Cluster::countdiff, I_free(), I_free_double2(), Cluster::mean, NULL, Cluster::reclass, Cluster::sum, Cluster::sum2, and Cluster::sumdiff.
Referenced by I_cluster_exec_allocate().
Calculate means value.
| C | pointer to Cluster structure |
Definition at line 24 of file c_means.c.
References Cluster::band_sum, Cluster::band_sum2, G_debug(), Cluster::mean, Cluster::nbands, Cluster::nclasses, and Cluster::npoints.
Referenced by I_cluster_exec().
?
| C | pointer to Cluster structure |
Definition at line 23 of file c_merge.c.
References Cluster::class, Cluster::count, Cluster::merge1, Cluster::merge2, Cluster::nbands, Cluster::npoints, and Cluster::sum.
Referenced by I_cluster_exec().
Get number of classes.
| C | pointer to Cluster structure |
| minsize | minimum class size |
Definition at line 24 of file c_nclasses.c.
References Cluster::count, and Cluster::nclasses.
Adds the point x to the list of data points to be "clustered".
The dimension of x must agree with the number of bands specified in the initializing call to I_cluster_begin()
Note: if all values in x are zero, the point is rejected
Definition at line 32 of file c_point.c.
References Cluster::band_sum, Cluster::band_sum2, Cluster::nbands, Cluster::npoints, Cluster::points, Rast_is_d_null_value, and x.
?
| C | pointer to Cluster structure |
| x | cell value |
| band | band number |
| n | ? |
Definition at line 88 of file c_point.c.
References Cluster::band_sum, Cluster::band_sum2, Cluster::npoints, Cluster::points, Rast_is_d_null_value, and x.
?
| C | pointer to Cluster structure |
| interrupted |
Definition at line 25 of file c_reassign.c.
References Cluster::class, Cluster::count, Cluster::countdiff, HUGE_VAL, min, Cluster::nbands, Cluster::nclasses, Cluster::npoints, Cluster::points, Cluster::sum, and Cluster::sumdiff.
Referenced by I_cluster_exec().
Reclass data.
| C | pointer to Cluster structure |
| minsize | minimum class size |
Definition at line 25 of file c_reclass.c.
References Cluster::class, Cluster::count, Cluster::nbands, Cluster::nclasses, Cluster::npoints, Cluster::reclass, and Cluster::sum.
Referenced by I_cluster_exec().
?
| C | pointer to Cluster structure |
| class1 | 1st class |
| class2 | 2nd class |
Definition at line 26 of file c_sep.c.
References Cluster::count, FAR, Cluster::nbands, Cluster::sum, Cluster::sum2, and var().
Referenced by I_cluster_distinct().
Create signatures.
| C | pointer to Cluster structure |
Definition at line 23 of file c_sig.c.
References Cluster::class, Cluster::count, I_new_signature(), Cluster::nbands, Cluster::nclasses, Cluster::npoints, Cluster::points, Cluster::S, and Cluster::sum.
Referenced by I_cluster_exec().
Compute sum of squares for each class.
| C | pointer to Cluster structure |
Definition at line 23 of file c_sum2.c.
References G_debug(), Cluster::nbands, Cluster::nclasses, Cluster::npoints, Cluster::points, and Cluster::sum2.
Referenced by I_cluster_distinct(), and I_cluster_exec().