power_spectrum

Function power_spectrum 

Source
pub fn power_spectrum<D>(_complexarray: &Array<Complex64, D>) -> Array<f64, D>
where D: Dimension,
Expand description

Calculate the power spectrum of a complex array (squared magnitude)

§Arguments

  • complex_array - The complex-valued array

§Returns

A real array with the power spectrum (squared magnitude) of each element