bilby.gw.conversion.spectral_pca_to_spectral
- bilby.gw.conversion.spectral_pca_to_spectral(gamma_pca_0, gamma_pca_1, gamma_pca_2, gamma_pca_3)[source]
- Change of basis on parameter space
from an efficient space to sample in (sample space) to the space used in spectral eos model (model space).
Uses principle component analysis (PCA) to sample spectral gamma parameters more efficiently. See arxiv:2001.01747 for the PCA conversion transformation matrix, mean, and standard deviation. (Note that this transformation matrix is the inverse of the one referenced
in order to perform the inverse transformation.)
- Parameters:
- gamma_pca_0, gamma_pca_1, gamma_pca_2, gamma_pca_3: float
Spectral gamma PCA parameters to be converted to spectral gamma parameters.
- Returns:
- converted_gamma_parameters: np.array()
array of gamma_0, gamma_1, gamma_2, gamma_3 in model space