Skip to main content

channel_stats

Function channel_stats 

Source
pub fn channel_stats(data: &Array2<f64>) -> Vec<(f64, f64, f64, f64)>
Expand description

Compute (mean, max, min, std) for every channel in a (T, C) array.

NaN values are ignored in all statistics. Returns a vector of length C where each entry is (mean, max, min, std). If a channel is entirely NaN the tuple fields will be NaN.