25 int c, p, band1, band2;
41 for (p = 0; p < C->
npoints; p++) {
52 for (band1 = 0; band1 < C->
nbands; band1++) {
53 m1 = C->
sum[band1][c] / dn;
55 for (band2 = 0; band2 <= band1; band2++) {
56 m2 = C->
sum[band2][c] / dn;
58 C->
S.
sig[c].
var[band1][band2] += (p1 - m1) * (p2 - m2);
67 for (band1 = 0; band1 < C->
nbands; band1++)
69 dn = n = C->
count[c] - 1;
72 for (band1 = 0; band1 < C->
nbands; band1++)
73 for (band2 = 0; band2 <= band1; band2++)
74 C->
S.
sig[c].
var[band1][band2] /= dn;
int I_new_signature(struct Signature *)
int I_cluster_signatures(struct Cluster *C)
Create signatures.