get_covariance¶
- sofia_redux.scan.integration.integration_numba_functions.get_covariance(frame_data, frame_valid, frame_weight, channel_flags, channel_weight, sample_flags, frame_flags, source_flags)[source]¶
Return the channel covariance.
- Parameters:
- frame_datanumpy.ndarray (float)
The frame data of shape (n_frames, all_channels).
- frame_validnumpy.ndarray (bool)
A mask of shape (n_frames,) where
False
excludes a frame from processing.- frame_weightnumpy.ndarray (float)
The frame relative weights of shape (n_frames,).
- channel_flagsnumpy.ndarray (int)
An integer mask of shape (all_channels,) where any non-zero value will exclude that channel from inclusion.
- channel_weightnumpy.ndarray (float)
The channel weights of shape (all_channels,).
- sample_flagsnumpy.ndarray (int)
A mask of integer flags for each frame value of shape (n_frames, all_channels).
- frame_flagsnumpy.ndarray (int)
The frame flags of shape (n_frames,).
- source_flagsint
The flag indicating that a frame should not be included due to having this associated flag.
- Returns:
- covariancenumpy.ndarray (float)
The covariance matrix of shape (all_channels, all_channels).