matryoshka.eft_funcs
Module containing functions for combining the predictions from the EFTEMU component emulators to calculate the galaxy power spectrum.
- matryoshka.eft_funcs.multipole(P_n, b, f, stochastic=None, kbins=None, ng=None, multipole=None)
Calculates the galaxy power spectrum multipole given a P_n matrix that corresponds to the desired multipole.
- Parameters
P_n (list) – List of arrays
[P11, Ploop, Pct]. The arrays should have shape(3, nk),(12, nk), and(6, nk)respectively.b (array) – Array of bias parameters and counter terms.
f (float) – Growth rate at the same redshift as
P_n.
- Returns
The galaxy multipole.
- matryoshka.eft_funcs.multipole_vec(P_n, b, f, stochastic=None, kbins=None, ng=None, multipole=None)
Vectorized version of
multipolethat allows for multipoles to be calculated for multiple cosmologies.- Parameters
P_n (list) – List of arrays
[P11, Ploop, Pct]. The arrays should have shape(nd, 3, nk),(nd, 12, nk), and(nd, 6, nk)respectively.b (array) – Array of bias parameters and counter terms. Should have shape (nd, 7).
f (float) – Growth rate at the same redshift as
P_n. Should have shape (nd, 1).stochastic (array) – Input stochastic counterterms. Should have shape (n, 3). Default is
None, in which case no stochastic terms are used.kbins (array) – k-bins associated to
P_n. Only required ifstochasticis notNone. Default isNoneng (float) – Mean galaxy number density. Only required if
stochasticis notNone. Default isNone.multipole (int) – Desired multipole. Can either be 0 or 1. Default is
None. Only is required ifstochasticis notNone.
- Returns
The galaxy multipoles.