GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
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.

Functions

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

Detailed Description

Cluster library - Reassign cluster.

SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Original author CERL

Definition in file c_reassign.c.

Function Documentation

◆ I_cluster_reassign()

int I_cluster_reassign ( struct Cluster C,
int interrupted 
)

?

Parameters
Cpointer to Cluster structure
interrupted
Returns
number of changes

Definition at line 23 of file c_reassign.c.

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

Referenced by I_cluster_exec().