We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3a090 commit 313e8b0Copy full SHA for 313e8b0
src/denoising_data.jl
@@ -50,7 +50,7 @@ end
50
# Function to generate a Gaussian kernel
51
function my_gaussian_kernel(kernel_size, kernel_sigma)
52
x, y = meshgrid((-kernel_size):kernel_size, (-kernel_size):kernel_size)
53
- normal = 1 / (2.0 * pi * kernel_sigma^2)
+ normal = 1 / (2 * pi * kernel_sigma^2)
54
kernel = exp.(-((x .^ 2 .+ y .^ 2) / (2.0 * kernel_sigma^2))) * normal
55
kernel ./= sum(kernel)
56
return kernel
0 commit comments