GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73566
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
c_assign.c File Reference

Cluster library - Assign cluster. More...

#include <math.h>
#include <grass/cluster.h>
Include dependency graph for c_assign.c:

Go to the source code of this file.


int I_cluster_assign (struct Cluster *C, int *interrupted)
 Assign cluster. More...

Detailed Description

Cluster library - Assign cluster.

(C) 2001-2009 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Original author CERL

Definition in file c_assign.c.

Function Documentation

int I_cluster_assign ( struct Cluster C,
int interrupted 

Assign cluster.

Cpointer to Cluster structure
-1 on interrupted
0 on success

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().