Skip to content

Commit

Permalink
remove normalization factor to leave the max to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mthiboust committed Nov 30, 2023
1 parent e92ac51 commit f52fcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/somap/neighborhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ def __call__(self, distance_map: Float[Array, "x y"], _, __) -> Float[Array, "x
The Mexican Hat neighborhood distance.
"""
r2_norm = distance_map**2 / self.sigma**2
return (1 - 0.5 * r2_norm) * jnp.exp(-r2_norm / 2) / (jnp.pi * self.sigma**4)
return (1 - 0.5 * r2_norm) * jnp.exp(-r2_norm / 2)

0 comments on commit f52fcb9

Please sign in to comment.