GRASS GIS 7 Programmer's Manual  7.0.5(2016)-r00000
c_clear.c
Go to the documentation of this file.
1 
14 #include <grass/cluster.h>
15 
23 int I_cluster_clear(struct Cluster *C)
24 {
25  C->points = NULL;
26  C->band_sum = NULL;
27  C->band_sum2 = NULL;
28  C->class = NULL;
29  C->reclass = NULL;
30  C->count = NULL;
31  C->countdiff = NULL;
32  C->sum = NULL;
33  C->sumdiff = NULL;
34  C->sum2 = NULL;
35  C->mean = NULL;
36  C->nbands = 0;
37  I_init_signatures(&C->S, 0);
38 
39  return 0;
40 }
#define NULL
Definition: ccmath.h:32
int I_cluster_clear(struct Cluster *C)
Clear Cluster structure.
Definition: c_clear.c:23