comet_maths.linear_algebra.matrix_conversion.calculate_flattened_corr#
- comet_maths.linear_algebra.matrix_conversion.calculate_flattened_corr(corrs: List[ndarray], corr_between: ndarray) ndarray [source]#
Combine correlation matrices for different input quantities, with a correlation matrix that gives the correlation between the input quantities into a full (flattened) correlation matrix combining the two.
- Parameters:
corrs – list of correlation matrices for each input quantity
corr_between – correlation matrix between the input quantities
- Returns:
full correlation matrix combining the correlation matrices