GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
cluster.h
Go to the documentation of this file.
1
#ifndef GRASS_CLUSTER_H
2
#define GRASS_CLUSTER_H
3
4
#include <
grass/gis.h
>
5
#include <
grass/imagery.h
>
6
7
struct
Cluster
{
8
int
nbands
;
/* number of bands */
9
int
npoints
;
/* number of points */
10
DCELL
**
points
;
/* array of points */
11
int
np
;
12
13
double
*
band_sum
;
/* sum over each band */
14
double
*
band_sum2
;
/* sum of squares over each band */
15
16
int
*
class
;
/* class of each point */
17
int
*
reclass
;
/* for removing empty classes */
18
int
*
count
;
/* number of points in each class */
19
int
*
countdiff
;
/* change in count */
20
double
**
sum
;
/* sum over band per class */
21
double
**
sumdiff
;
/* change in sum */
22
double
**
sum2
;
/* sum of squares per band per class */
23
double
**
mean
;
/* initial class means */
24
struct
Signature
S
;
/* final signature(s) */
25
26
int
nclasses
;
/* number of classes */
27
int
merge1
,
merge2
;
28
int
iteration
;
/* number of iterations */
29
double
percent_stable
;
/* percentage stable */
30
};
31
32
#include <
grass/defs/cluster.h
>
33
34
#endif
cluster.h
gis.h
DCELL
double DCELL
Definition:
gis.h:629
imagery.h
Cluster
Definition:
cluster.h:7
Cluster::iteration
int iteration
Definition:
cluster.h:28
Cluster::count
int * count
Definition:
cluster.h:18
Cluster::percent_stable
double percent_stable
Definition:
cluster.h:29
Cluster::sum2
double ** sum2
Definition:
cluster.h:22
Cluster::npoints
int npoints
Definition:
cluster.h:9
Cluster::countdiff
int * countdiff
Definition:
cluster.h:19
Cluster::S
struct Signature S
Definition:
cluster.h:24
Cluster::band_sum2
double * band_sum2
Definition:
cluster.h:14
Cluster::nclasses
int nclasses
Definition:
cluster.h:26
Cluster::mean
double ** mean
Definition:
cluster.h:23
Cluster::points
DCELL ** points
Definition:
cluster.h:10
Cluster::merge2
int merge2
Definition:
cluster.h:27
Cluster::reclass
int * reclass
Definition:
cluster.h:17
Cluster::np
int np
Definition:
cluster.h:11
Cluster::band_sum
double * band_sum
Definition:
cluster.h:13
Cluster::merge1
int merge1
Definition:
cluster.h:27
Cluster::sum
double ** sum
Definition:
cluster.h:20
Cluster::nbands
int nbands
Definition:
cluster.h:8
Cluster::sumdiff
double ** sumdiff
Definition:
cluster.h:21
Signature
Definition:
imagery.h:58
include
grass
cluster.h
Generated on Thu Nov 21 2024 07:03:26 for GRASS GIS 8 Programmer's Manual by
1.9.1