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

Functions

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

Detailed Description

Cluster library - Assign cluster.

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

Author
Original author CERL

Definition in file c_assign.c.

Function Documentation

◆ I_cluster_assign()

int I_cluster_assign ( struct Cluster C,
int interrupted 
)

Assign cluster.

Parameters
Cpointer to Cluster structure
interrupted?
Returns
-1 on interrupted
0 on success

Definition at line 24 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().