Skip to main content

average_echoes

Function average_echoes 

Source
pub fn average_echoes(data: &[f64], grid: &Grid) -> Vec<f64>
Expand description

Average a multi-echo volume over its echoes

Input is n_echoes × n_total values stacked along the slowest axis; output is a single n_total volume. A single-echo input is returned unchanged.

§Panics

If data is not a non-zero multiple of grid.n_total().