Commit 74d9bf80 authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Restore missing factor

Original: 2ae5d47dc295bebcf75a85f9d3f93f935054721f
parent 4886040a
......@@ -882,7 +882,7 @@ bayestar_pixel *bayestar_sky_map_toa_phoa_snr(
for (unsigned char k = 0; k < 3; k ++)
sum_accum2[k] += exp(accum2[isample][k] - max_accum2[k]);
for (unsigned char k = 0; k < 3; k ++)
accum1[k] = logaddexp(accum1[k], log(sum_accum2[k] * weight));
accum1[k] = logaddexp(accum1[k], log(sum_accum2[k] * weight) + max_accum2[k]);
}
for (unsigned char k = 0; k < 3; k ++)
......
Supports Markdown
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