Skip to content

Commit

Permalink
normalize
Browse files Browse the repository at this point in the history
added nick's normalize function
  • Loading branch information
ecummings0 committed Apr 14, 2021
1 parent a0d2c44 commit 7dd1918
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ ifftq = (k,d) -> fftshift(ifft(ifftshift(k,d),d),d).*size(k,d)
# also want some 2D versions
fftq2 = (k) -> fftq(fftq(k,2),1)
ifftq2 = (k) -> ifftq(ifftq(k,2),1)

normalize = (x) -> abs.(x) |> (x) -> x/max(x...)

0 comments on commit 7dd1918

Please sign in to comment.