bug fix
This commit is contained in:
@@ -321,7 +321,7 @@ end
|
||||
within its radius. radius must be odd number
|
||||
"""
|
||||
function normalizePeak!(v::Vector, radius::Integer=2)
|
||||
peak = findall(isequal.(n.wRec, maximum(n.wRec)))[1]
|
||||
peak = findall(isequal.(v, maximum(abs.(v))))[1]
|
||||
upindex = peak - radius
|
||||
upindex = upindex < 1 ? 1 : upindex
|
||||
downindex = peak + radius
|
||||
|
||||
Reference in New Issue
Block a user