GRASS GIS 7 Programmer's Manual  7.8.3(2020)-exported
cmattr.c
Go to the documentation of this file.
1 /* cmattr.c CCMATH mathematics library source code.
2  *
3  * Copyright (C) 2000 Daniel A. Atkinson All rights reserved.
4  * This code may be redistributed under the terms of the GNU library
5  * public license (LGPL). ( See the lgpl.license file for details.)
6  * ------------------------------------------------------------------------
7  */
8 #include "ccmath.h"
9 void cmattr(Cpx * a, Cpx * b, int m, int n)
10 {
11  Cpx *p;
12 
13  int i, j;
14 
15  for (i = 0; i < n; ++i, ++b)
16  for (j = 0, p = b; j < m; ++j, p += n)
17  *a++ = *p;
18 }
I_cluster_clear
int I_cluster_clear(struct Cluster *C)
Clear Cluster structure.
Definition: c_clear.c:23
I_cluster_exec_free
int I_cluster_exec_free(struct Cluster *C)
Free allocated Cluster structure.
Definition: c_execmem.c:54
I_cluster_means
int I_cluster_means(struct Cluster *C)
Calculate means value.
Definition: c_means.c:24
I_cluster_assign
int I_cluster_assign(struct Cluster *C, int *interrupted)
Assign cluster.
Definition: c_assign.c:26
cmattr
void cmattr(Cpx *a, Cpx *b, int m, int n)
Definition: cmattr.c:9
I_cluster_separation
double I_cluster_separation(struct Cluster *C, int class1, int class2)
?
Definition: c_sep.c:26
I_cluster_reassign
int I_cluster_reassign(struct Cluster *C, int *interrupted)
?
Definition: c_reassign.c:25
I_cluster_signatures
int I_cluster_signatures(struct Cluster *C)
Create signatures.
Definition: c_sig.c:23
I_cluster_nclasses
int I_cluster_nclasses(struct Cluster *C, int minsize)
Get number of classes.
Definition: c_nclasses.c:24
b
double b
Definition: driver/set_window.c:5
ccmath.h
count
int count
I_cluster_point_part
int I_cluster_point_part(struct Cluster *C, DCELL x, int band, int n)
?
Definition: c_point.c:88
I_cluster_exec
int I_cluster_exec(struct Cluster *C, int maxclass, int iterations, double convergence, double separation, int min_class_size, int(*checkpoint)(), int *interrupted)
Definition: c_exec.c:32
I_cluster_merge
int I_cluster_merge(struct Cluster *C)
?
Definition: c_merge.c:23
I_cluster_sum2
int I_cluster_sum2(struct Cluster *C)
Compute sum of squares for each class.
Definition: c_sum2.c:23
I_cluster_reclass
int I_cluster_reclass(struct Cluster *C, int minsize)
Reclass data.
Definition: c_reclass.c:25
I_cluster_begin
int I_cluster_begin(struct Cluster *C, int nbands)
Initialize the cluster routines for nbands.
Definition: c_begin.c:28
I_cluster_distinct
int I_cluster_distinct(struct Cluster *C, double separation)
Get distinct value.
Definition: c_distinct.c:24
I_cluster_exec_allocate
int I_cluster_exec_allocate(struct Cluster *C)
Allocate Cluster structure.
Definition: c_execmem.c:24
I_cluster_end_point_set
int I_cluster_end_point_set(struct Cluster *C, int n)
?
Definition: c_point.c:109
I_cluster_point
int I_cluster_point(struct Cluster *C, DCELL *x)
Adds the point x to the list of data points to be "clustered".
Definition: c_point.c:32
I_cluster_begin_point_set
int I_cluster_begin_point_set(struct Cluster *C, int n)
Begin point set.
Definition: c_point.c:71
complex
Definition: ccmath.h:38