Commit 00238cfe authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix standard deviation calculation in average correlation code

parent 07f568f7
......@@ -330,8 +330,9 @@ struct get_avg_correlation
{
sum.GetArray()[i] /= count.GetArray()[i];
sum2.GetArray()[i] =
sqrt(sum2.GetArray()[i]/count.GetArray()[i] -
sum.GetArray()[i])/sqrt(count.GetArray()[i]);
sqrt(abs(sum2.GetArray()[i]/count.GetArray()[i] -
sum.GetArray()[i] * sum.GetArray()[i])) /
sqrt(count.GetArray()[i]);
}
bins = sum.GetBins();
......
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