Commit 29ad2c9e authored by Martin Mareš's avatar Martin Mareš

Variance estimation fixed.

parent 87b60bf7
......@@ -78,7 +78,7 @@ main(int argc, char **argv)
int min=cnt, max=0, zer=0;
double delta=0;
double avg = (double) cnt / z;
double exdelta = avg*(1-1/z);
double exdelta = avg*(1-1/(double)z);
double exzer = exp(-avg);
for(i=0; i<z; i++) {
if (h[i] < min) min=h[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment