GRASS 8 Programmer's Manual 8.6.0dev(2026)-d2adb3a889
Loading...
Searching...
No Matches
c_begin.c File Reference

Cluster library - Begin clusterring. More...

#include <stdlib.h>
#include <grass/glocale.h>
#include <grass/cluster.h>
Include dependency graph for c_begin.c:

Go to the source code of this file.

Functions

int I_cluster_begin (struct Cluster *C, int nbands)
 Initialize the cluster routines for nbands.
 

Detailed Description

Cluster library - Begin clusterring.

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

Author
Original author CERL

Definition in file c_begin.c.

Function Documentation

◆ I_cluster_begin()

int I_cluster_begin ( struct Cluster C,
int  nbands 
)

Initialize the cluster routines for nbands.

Parameters
Cpointer to Cluster structure
nbandsnumber of bands
Returns
0 ok
-1 out of memory
1 illegal number of bands

Definition at line 26 of file c_begin.c.

References _, Cluster::band_sum, Cluster::band_sum2, free(), I_free_signatures(), I_init_signatures(), malloc(), Cluster::nbands, Cluster::np, Cluster::npoints, NULL, Cluster::points, and Cluster::S.