accumulate_profiles

sofia_redux.scan.filters.filters_numba_functions.accumulate_profiles(profiles, channel_profiles, channel_indices)[source]

Accumulate the calculated profiles onto channel profiles.

The accumulation process multiplies the existing channel_profiles by profiles, and once complete, sets profiles to the same values as channel_profiles.

Parameters:
profilesnumpy.ndarray (float)

The profiles of shape (n_channels, n_freq).

channel_profilesnumpy.ndarray (float)

The channel profiles of shape (n_channels, n_freq).

channel_indicesnumpy.ndarray (int)

The channel indices for which to accumulate profiles of shape (<=n_channels,).

Returns:
None