We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d91c0 commit 87f0e6dCopy full SHA for 87f0e6d
1 file changed
src/cax/cs/lenia/kernel.py
@@ -63,12 +63,12 @@ def polynomial_kernel_core(radius, alpha=4):
63
64
def rectangular_kernel_core(radius):
65
"""Rectangular kernel core."""
66
- return jnp.where((radius >= 1 / 4) & (radius <= 3 / 4), 1, 0)
+ return jnp.where((radius >= 1 / 4) & (radius <= 3 / 4), 1.0, 0.0)
67
68
69
-def gaussian_kernel_core(radius):
+def gaussian_kernel_core(radius, std=0.15):
70
"""Gaussian kernel core."""
71
- return bell(radius, 0.5, 0.15)
+ return bell(radius, 0.5, std)
72
73
74
# Kernel shells
0 commit comments