Skip to content
Snippets Groups Projects
Verified Commit 29529d29 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix zero-point of sinc function

parent bce6a9d1
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,9 @@ function SincPulse(;
end
function normalised_function(x; apodise=false)
if iszero(x)
return 1.
end
if apodise
return (0.54 + 0.46 * cos(π * x)) * sin(π * x) / (π * x)
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment