Soeren Gebbert 3a539ed71b Fix: return the allocated buffer před 15 roky
..
Makefile 002bbe23df Keep all library dependencies in Grass.make před 15 roky
README db49180dd7 welcome to GRASS 7.0.svn před 17 roky
alloc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
eol.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
find.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
fopen.c 98dbc68757 fixed unlucky formatted messages (thanks to Glynn) před 17 roky
georef.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
group.c a927cf1428 use G_getl2(), i18n (merge from devbr6) před 15 roky
imagerylib.dox bd5fd6b638 doxygen updated před 16 roky
list_gp.c a4f35de12d imagerylib: i18n, message cosmetics před 16 roky
list_subgp.c a4f35de12d imagerylib: i18n, message cosmetics před 16 roky
loc_info.c 3a539ed71b Fix: return the allocated buffer před 15 roky
points.c a927cf1428 use G_getl2(), i18n (merge from devbr6) před 15 roky
ref.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
sig.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
sigfile.c 69ac420b2f gislib G__name_is_fully_qualified() renamed to před 16 roky
sigset.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
sigsetfile.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
target.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
title.c a927cf1428 use G_getl2(), i18n (merge from devbr6) před 15 roky
var.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky

README

To merge 2 signatures

n1 number of points in sig 1
n2 number of points in sig 2

mean1[nbands] means per band for sig 1
mean2[nbands] means per band for sig 2

var1[b1][b2] covariance band 1 with band 2 for sig 1
var2[b1][b2] covariance band 1 with band 2 for sig 2

the meger is

n = n1+n2
mean[b] = (mean1[b]*n1 + mean2[b]*n2)/n

sum1 = var1[b1][b2] * (n1-1) + n1 * mean[b1] * mean[b2];
sum2 = var2[b1][b2] * (n2-1) + n2 * mean[b1] * mean[b2];

var[b1][b2] = (sum1+sum2 - n*mean[b1]*mean[b2) / (n-1)