StreamingModel¶
The driver that wires the physics components to the numerical integration and produces redshift-space observables.
liulu.model.StreamingModel ¶
Streaming model of redshift-space distortions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xi_real
|
RealSpaceCorrelation
|
Real-space correlation function xi(r). |
required |
velocity_pdf
|
VelocityPDF
|
LOS pairwise velocity PDF, already constructed from moments. |
required |
aH
|
float
|
a * H(z) in km/s/(Mpc/h). |
required |
y_max
|
float
|
Integration limit for y (real-space parallel distance), Mpc/h. |
150.0
|
n_y
|
int
|
Number of quadrature points per half-interval for y integration. |
600
|
n_mu
|
int
|
Number of mu points for multipole projection. |
100
|
Source code in liulu/model.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
xi_s_smu ¶
Compute xi^s on a (s, mu) grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s
|
array_like
|
Redshift-space pair separations, Mpc/h. |
required |
mu
|
array_like
|
Cosine of the angle to the line of sight. |
required |
Returns:
| Type | Description |
|---|---|
(ndarray, shape(n_s, n_mu))
|
Redshift-space correlation function. |
Source code in liulu/model.py
xi_s_2d ¶
Evaluate xi^s at given (s_perp, s_par) points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s_perp
|
array_like
|
Transverse separation(s), Mpc/h. |
required |
s_par
|
array_like
|
Line-of-sight separation(s), Mpc/h. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
xi^s values, same shape as input. |
Source code in liulu/model.py
multipoles ¶
Compute multipoles xi_0(s), xi_2(s), xi_4(s).
Uses Gauss-Legendre quadrature over mu in [0, 1] (even-ell symmetry).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s_array
|
array_like
|
Separation values, Mpc/h. |
required |
ell_max
|
int
|
Maximum multipole order (must be even). |
4
|
Returns:
| Type | Description |
|---|---|
dict
|
{0: xi_0(s), 2: xi_2(s), 4: xi_4(s), ...} |
Source code in liulu/model.py
wedges ¶
Compute wedge-averaged xi(s, Delta_mu).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s_array
|
array_like
|
Separation values, Mpc/h. |
required |
mu_edges
|
list of tuples
|
List of (mu_min, mu_max) for each wedge. |
required |
n_mu_per_wedge
|
int
|
Number of GL nodes per wedge. |
50
|
Returns:
| Type | Description |
|---|---|
list of ndarray
|
Wedge-averaged xi(s) for each wedge. |