GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
c_nclasses.c
Go to the documentation of this file.
1 #include <grass/cluster.h>
2 
3 int I_cluster_nclasses(struct Cluster *C, int minsize)
4 {
5  int i, n;
6 
7  n = 0;
8  for (i = 0; i < C->nclasses; i++)
9  if (C->count[i] >= minsize)
10  n++;
11  return n;
12 }
int I_cluster_nclasses(struct Cluster *C, int minsize)
Definition: c_nclasses.c:3
#define C
Definition: intr_char.c:17
int n
Definition: dataquad.c:291