Skip to main content

fftshift

Function fftshift 

Source
pub fn fftshift(data: &[f64], n: usize) -> Vec<f64>
Expand description

Swap quadrants so the zero frequency sits at the centre of the array.

Its own inverse for an even-sized grid, which is why a caller can use it both to centre a result for display and to un-centre one before transforming it again.