GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
Main Page
Related Pages
+
Data Structures
Data Structures
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
c_clear.c
Go to the documentation of this file.
1
/*!
2
\file cluster/c_clear.c
3
4
\brief Cluster library - Clear structures
5
6
(C) 2001-2009 by the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Original author CERL
12
*/
13
14
#include <
grass/cluster.h
>
15
16
/*!
17
\brief Clear Cluster structure
18
19
\param C pointer to Cluster structure
20
21
\return 0
22
*/
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
}
Cluster::nbands
int nbands
Definition:
cluster.h:9
Cluster::sum
double ** sum
Definition:
cluster.h:21
Cluster::mean
double ** mean
Definition:
cluster.h:24
Cluster::band_sum
double * band_sum
Definition:
cluster.h:14
Cluster::S
struct Signature S
Definition:
cluster.h:25
NULL
#define NULL
Definition:
ccmath.h:32
Cluster
Definition:
cluster.h:7
Cluster::count
int * count
Definition:
cluster.h:19
Cluster::sum2
double ** sum2
Definition:
cluster.h:23
Cluster::sumdiff
double ** sumdiff
Definition:
cluster.h:22
Cluster::class
int * class
Definition:
cluster.h:17
Cluster::points
DCELL ** points
Definition:
cluster.h:11
Cluster::reclass
int * reclass
Definition:
cluster.h:18
I_cluster_clear
int I_cluster_clear(struct Cluster *C)
Clear Cluster structure.
Definition:
c_clear.c:23
cluster.h
Cluster::countdiff
int * countdiff
Definition:
cluster.h:20
Cluster::band_sum2
double * band_sum2
Definition:
cluster.h:15
I_init_signatures
int I_init_signatures(struct Signature *, int)
Definition:
sig.c:4
lib
cluster
c_clear.c
Generated on Mon May 31 2021 05:21:28 for GRASS GIS 7 Programmer's Manual by
1.8.13