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

Cluster library - Reassign cluster. More...

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

Go to the source code of this file.


int I_cluster_reassign (struct Cluster *C, int *interrupted)
 ? More...

Detailed Description

Cluster library - Reassign 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_reassign.c.

Function Documentation

int I_cluster_reassign ( struct Cluster C,
int interrupted 


Cpointer to Cluster structure
number of changes

Definition at line 25 of file c_reassign.c.

References Cluster::class, Cluster::count, Cluster::countdiff, HUGE_VAL, min, Cluster::nbands, Cluster::nclasses, Cluster::npoints, old, Cluster::points, Cluster::sum, and Cluster::sumdiff.

Referenced by I_cluster_exec().