Skip to main content

average_downsample_ct

Function average_downsample_ct 

Source
pub fn average_downsample_ct(data: &Array2<f64>, target_t: usize) -> Array2<f64>
Expand description

Average-pool a (C, T) array down to (C, target_t) time-steps.

Used by the structural caption generator to reduce the 1440 time-steps to a manageable 36 points (factor 40).

§Panics

Panics if T is not divisible by target_t.