bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] MISER subdivision bug


From: Rudy Arthur
Subject: [Bug-gsl] MISER subdivision bug
Date: Sun, 19 May 2013 22:49:19 +0200

Hi,

I found what I think is a bug in miser.c.
In the function estimate_corrmc, line 689 in the file
  sigma_l[i] = sqrt (fsum2_l[i] - fsum_l[i] * fsum_l[i] / hits_l[i]);
is supposed to be the variance in the left hand region with the division in
the i-axis ,
Shouldn't this be:
  sqrt( ( fsum2_l[i] / hits_l[i] - fsum_l[i] * fsum_l[i] ) / (hits_l[i] -
1) )
and correspondingly for the right hand variance? Or is there some subtlety
I am missing?

Rudy.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]