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

Cluster library - Means value. More...

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

Go to the source code of this file.

Functions

int I_cluster_means (struct Cluster *C)
 Calculate means value. More...
 

Detailed Description

Cluster library - Means value.

(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.

Author
Original author CERL

Definition in file c_means.c.

Function Documentation

int I_cluster_means ( struct Cluster C)

Calculate means value.

Parameters
Cpointer to Cluster structure
Returns
0

Definition at line 24 of file c_means.c.

References Cluster::band_sum, Cluster::band_sum2, G_debug(), if(), Cluster::mean, Cluster::nbands, Cluster::nclasses, and Cluster::npoints.

Referenced by I_cluster_exec().