GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Cluster library - Allocate cluster. More...
#include <grass/cluster.h>
Go to the source code of this file.
Functions | |
int | I_cluster_exec_allocate (struct Cluster *C) |
Allocate Cluster structure. More... | |
int | I_cluster_exec_free (struct Cluster *C) |
Free allocated Cluster structure. More... | |
Cluster library - Allocate 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.
Definition in file c_execmem.c.
int I_cluster_exec_allocate | ( | struct Cluster * | C | ) |
Allocate Cluster structure.
C | pointer to Cluster structure |
Definition at line 24 of file c_execmem.c.
References Cluster::class, Cluster::count, Cluster::countdiff, G_debug(), I_alloc_double2(), I_alloc_int(), I_cluster_exec_free(), Cluster::mean, Cluster::nbands, Cluster::nclasses, Cluster::npoints, NULL, Cluster::reclass, Cluster::sum, Cluster::sum2, and Cluster::sumdiff.
Referenced by I_cluster_exec().
int I_cluster_exec_free | ( | struct Cluster * | C | ) |
Free allocated Cluster structure.
C | pointer to Cluster structure |
Definition at line 53 of file c_execmem.c.
References Cluster::class, Cluster::count, Cluster::countdiff, I_free(), I_free_double2(), Cluster::mean, NULL, Cluster::reclass, Cluster::sum, Cluster::sum2, and Cluster::sumdiff.
Referenced by I_cluster_exec_allocate().