+ variance

This commit is contained in:
2019-09-29 13:45:33 +02:00
parent e2a5a5f5f8
commit 9246a88d2c
2 changed files with 17 additions and 2 deletions

View File

@@ -68,6 +68,18 @@ for (idx=0; idx<4; idx++) {
return 0;
}
/* ---------------------------------------------------------------- */
/*
c = 0
s = x1
pour j de 2 à n
s = s+xj
c = c+(j xj s)2/(j(j1))
renvoyer c/n
*/
/* ---------------------------------------------------------------- */
/*
* more elaborate functions are in fimg-2gray.c