gw.domains.multibanded_frequency_domain.decimate_uniform
gw.domains.multibanded_frequency_domain.decimate_uniform(
data,
decimation_factor,
)
Reduce dimension of data by decimation_factor along last axis, by uniformly averaging sets of decimation_factor neighbouring bins.
Parameters
| data |
|
Array or tensor to be decimated. |
required |
| decimation_factor |
int |
Factor by how much to compress. Needs to divide data.shape[-1]. |
required |
Returns
|
data_decimated |
Uniformly decimated data, as array or tensor. Shape (*data.shape[:-1], data.shape[-1]/decimation_factor). |