Same comments as for the angular frequency variant of this function: Array->AbstractVector and the return vector here is too broadly typed.