From 29ad2c9ee11df80c780c4e3f0fd217783af1d727 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 19 Dec 1998 21:53:28 +0000 Subject: [PATCH] Variance estimation fixed. --- misc/ips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ips.c b/misc/ips.c index ec7e673e..7ea6c71b 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