Skip to content

Commit

Permalink
fix poisson scale factors
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Oct 2, 2023
1 parent 5931ba4 commit cf381b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dilax/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def scale_factor(self, parameter: Parameter, sumw: jax.Array) -> jax.Array:
gauss_cdf = jnp.broadcast_to(
self.constraint.cdf(parameter.value), self.lamb.shape
)
return Poisson(self.lamb).inv_cdf(gauss_cdf) # type: ignore[arg-type]
return Poisson(self.lamb).inv_cdf(gauss_cdf) / sumw # type: ignore[arg-type]


class ModifierBase(eqx.Module):
Expand Down

0 comments on commit cf381b0

Please sign in to comment.