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

Cluster library - Sum of squares. More...

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

Go to the source code of this file.

Functions

int I_cluster_sum2 (struct Cluster *C)
 Compute sum of squares for each class.
 

Detailed Description

Cluster library - Sum of squares.

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

Author
Original author CERL

Definition in file c_sum2.c.

Function Documentation

◆ I_cluster_sum2()

int I_cluster_sum2 ( struct Cluster C)

Compute sum of squares for each class.

Parameters
Cpointer to Cluster structure
Returns
0

Definition at line 21 of file c_sum2.c.

References G_debug(), Cluster::nbands, Cluster::nclasses, Cluster::npoints, Cluster::points, and Cluster::sum2.

Referenced by I_cluster_distinct(), and I_cluster_exec().