summaryrefslogtreecommitdiffstats
path: root/misc/ips.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-19 22:53:28 +0100
committerMartin Mares <mj@ucw.cz>1998-12-19 22:53:28 +0100
commit29ad2c9ee11df80c780c4e3f0fd217783af1d727 (patch)
tree6616a8280d69403264eb020ad5930b5f82689494 /misc/ips.c
parent87b60bf7e8ad12b3efd3d6f37df0d029f50d2d91 (diff)
downloadbird-29ad2c9ee11df80c780c4e3f0fd217783af1d727.tar
bird-29ad2c9ee11df80c780c4e3f0fd217783af1d727.zip
Variance estimation fixed.
Diffstat (limited to 'misc/ips.c')
-rw-r--r--misc/ips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ips.c b/misc/ips.c
index ec7e673..7ea6c71 100644
--- a/misc/ips.c
+++ b/misc/ips.c
@@ -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];