0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Variance estimation fixed.

This commit is contained in:
Martin Mares 1998-12-19 21:53:28 +00:00
parent 87b60bf7e8
commit 29ad2c9ee1

View File

@ -78,7 +78,7 @@ main(int argc, char **argv)
int min=cnt, max=0, zer=0; int min=cnt, max=0, zer=0;
double delta=0; double delta=0;
double avg = (double) cnt / z; double avg = (double) cnt / z;
double exdelta = avg*(1-1/z); double exdelta = avg*(1-1/(double)z);
double exzer = exp(-avg); double exzer = exp(-avg);
for(i=0; i<z; i++) { for(i=0; i<z; i++) {
if (h[i] < min) min=h[i]; if (h[i] < min) min=h[i];