Photometric Likelihoods¶
These classes implement Gaussian likelihoods for Euclid photometric primary probes, covering both angular power spectra (Cls) and real-space two-point correlation functions (2PCF).
Base¶
Shared by both Cls and 2PCF likelihoods.
PhotoLikelihoodProtocol¶
cloelike.EuclidLikelihood_photo_base.PhotoLikelihoodProtocol ¶
Bases: Protocol
Protocol for photo-z likelihood classes.
This protocol defines the required interface for photometric likelihood implementations, specifying initialization, required attributes, and methods for computing data vectors, theory vectors, covariance matrices, and log-likelihoods.
Attributes: data (dict): Observational data dictionary. settings (dict): Configuration settings dictionary. Background (Background): Cosmological background instance. LinPerturbations (Perturbations): Linear perturbations instance. NonLinPerturbations (Perturbations): Non-linear perturbations instance. derived (dict): Dictionary for derived quantities. mode (str): Mode of operation (e.g., "coupled").
Methods: init(data, settings, Background, LinPerturbations, NonLinPerturbations, mode): Initializes the likelihood protocol. get_data_vector_full() -> np.ndarray: Returns the full data vector. get_data_vector_masked() -> np.ndarray: Returns the masked data vector. get_theory_vector_full(parameters: dict) -> np.ndarray: Returns the full theory vector for given parameters. get_theory_vector_masked(parameters: dict) -> np.ndarray: Returns the masked theory vector for given parameters. get_covariance_matrix_full() -> np.ndarray: Returns the full covariance matrix. get_covariance_matrix_masked_inv() -> np.ndarray: Returns the inverse of the masked covariance matrix. loglike(parameters: dict) -> float: Computes the log-likelihood for the given parameters.
Source code in cloelike/EuclidLikelihood_photo_base.py
options: show_source: true
PhotoLikelihoodBase¶
cloelike.EuclidLikelihood_photo_base.PhotoLikelihoodBase ¶
Base class for photometric likelihood calculations using angular correlation functions. This class provides methods for preparing, binning, and masking data, as well as computing likelihoods based on theoretical predictions and observed data vectors. Args: data (dict): Dictionary containing observational data, including '2pcf', 'theta', 'z_arr', and 'cov'. settings (dict): Configuration settings, including 'scale_cuts'. Background: Object representing background cosmology. LinPerturbations: Object representing linear perturbations. NonLinPerturbations: Object representing non-linear perturbations. mode (str, optional): Mode of operation, default is "coupled". Attributes: data (dict): Observational data. settings (dict): Configuration settings. derived (dict): Dictionary for storing derived quantities. Background: Background cosmology object. LinPerturbations: Linear perturbations object. NonLinPerturbations: Non-linear perturbations object. scale_cuts: Scale cuts from settings. zs: Redshift array from data. mixmat: Mixing matrix, possibly rebinned. weight_mat: Weight matrix used for binning. masking_vector: Boolean mask for selecting data vector elements. Methods: _masking(arr, interval): Returns a boolean mask for elements within the specified interval. get_covariance_matrix_full(): Returns the full covariance matrix from the data. get_data_vector_masked(): Returns the masked data vector. get_covariance_matrix_masked_inv(): Returns the inverse of the masked covariance matrix. get_theory_vector_full(parameters): Returns the full theoretical prediction vector for given parameters. get_theory_vector_masked(parameters): Returns the masked theoretical prediction vector for given parameters. loglike(parameters): Computes the log-likelihood for the given parameters using the masked data and theory vectors.
Source code in cloelike/EuclidLikelihood_photo_base.py
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 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
options: show_source: true
Angular Power Spectra (Cls)¶
Classes from cloelike.EuclidLikelihood_photo_Cls.
Mixins — composable building blocks for Cls likelihoods:
WLMixin¶
cloelike.EuclidLikelihood_photo_Cls.WLMixin ¶
Mixin class providing weak lensing (WL) specific functionality for photometric likelihoods. This mixin extends the base photometric likelihood class to include methods and attributes necessary for handling weak lensing data, such as initializing shear bins, constructing masking vectors, and computing data and theory vectors specific to weak lensing.
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
GCphMixin¶
cloelike.EuclidLikelihood_photo_Cls.GCphMixin ¶
Mixin class providing photometric angular galaxy clustering specific functionality for photometric likelihoods. This mixin extends the base photometric likelihood class to include methods and attributes necessary for handling weak lensing data, such as initializing shear bins, constructing masking vectors, and computing data and theory vectors specific to weak lensing.
Source code in cloelike/EuclidLikelihood_photo_Cls.py
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 | |
options: show_source: true
GGLMixin¶
cloelike.EuclidLikelihood_photo_Cls.GGLMixin ¶
Mixin class providing galaxy-galaxy lensing specific functionality for photometric likelihoods. This mixin extends the base photometric likelihood class to include methods and attributes necessary for handling weak lensing data, such as initializing shear bins, constructing masking vectors, and computing data and theory vectors specific to weak lensing.
Source code in cloelike/EuclidLikelihood_photo_Cls.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | |
options: show_source: true
BNTMixin¶
cloelike.EuclidLikelihood_photo_Cls.BNTMixin ¶
Mixin that applies a BNT transform to shear-related blocks (WL and GGL) in the photometric likelihood.
Source code in cloelike/EuclidLikelihood_photo_Cls.py
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 | |
Functions¶
get_data_vector_full ¶
get_covariance_matrix_full ¶
get_theory_vector_full ¶
Return BNT-transformed theory vector.
Theory is recomputed for each parameter set using the base class,
then transformed by the precomputed projection matrix _P.
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
Concrete likelihoods:
EuclidLikelihood_WL¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_WL ¶
Bases: WLMixin, PhotoLikelihoodBase
EuclidLikelihood_WL computes the weak lensing (WL) likelihood for photometric surveys using Euclid data.
Inherits from: PhotoLikelihoodBase: Base class for photometric likelihoods. WLMixin: Mixin providing weak lensing specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_GCph¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_GCph ¶
Bases: GCphMixin, PhotoLikelihoodBase
EuclidLikelihood_GCph computes the likelihood for galaxy clustering photometric (GCph) data using the Euclid survey specifications.
Inherits from: PhotoLikelihoodBase: Base class for photometric likelihoods. GCphMixin: Mixin providing GCph-specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_GGL¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_GGL ¶
Bases: GGLMixin, PhotoLikelihoodBase
EuclidLikelihood_GGL class for galaxy-galaxy lensing likelihood computation.
This class combines the functionalities of PhotoLikelihoodBase and GGLMixin to compute the likelihood for galaxy-galaxy lensing (GGL) using photometric data. It initializes the necessary components and constructs a masking vector based on scale cuts for each GGL key.
Inherits from: PhotoLikelihoodBase: Base class for photometric likelihoods. GGLMixin: Mixin providing GGL-specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_3x2pt¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_3x2pt ¶
Bases: GCphMixin, GGLMixin, WLMixin, PhotoLikelihoodBase
EuclidLikelihood_3x2pt combines weak lensing (WL), galaxy clustering (GCph), and galaxy-galaxy lensing (GGL) likelihoods for photometric cosmological analyses, supporting scale cuts and masking.
Inherits from: PhotoLikelihoodBase: Base class for photometric likelihoods. GCphMixin: Mixin providing galaxy clustering specific functionality. GGLMixin: Mixin providing galaxy-galaxy lensing specific functionality. WLMixin: Mixin providing weak lensing specific functionality.
Note: The order of inheritance matters due to the method resolution order (MRO) in Python and how mixins extend the base class functionality. Also, the order of the mixins assumes the ordering of the covariance matrix blocks is GCph, GGL and WL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Dictionary containing observational data vectors and related metadata. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance providing background cosmology calculations. |
required |
LinPerturbations
|
object
|
Instance for linear perturbation theory calculations. |
required |
NonLinPerturbations
|
object
|
Instance for non-linear perturbation theory calculations. |
required |
mode
|
str
|
Mode for likelihood calculation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_2x2pt¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_2x2pt ¶
Bases: GCphMixin, GGLMixin, PhotoLikelihoodBase
Likelihood class for Euclid 2x2pt photometric clustering and galaxy-galaxy lensing analysis.
This class combines galaxy clustering (GCph) and galaxy-galaxy lensing (GGL) likelihoods, providing methods to compute the full data and theory vectors for both probes.
Note: The order of inheritance matters due to the method resolution order (MRO) in Python and how mixins extend the base class functionality. The order of the mixins assumes the ordering of the covariance matrix blocks is GCph, GGL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data dictionary containing observed power spectra and related quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood analysis. |
required |
Background
|
object
|
Cosmological background model instance. |
required |
LinPerturbations
|
object
|
Linear perturbations model instance. |
required |
NonLinPerturbations
|
object
|
Non-linear perturbations model instance. |
required |
mode
|
str
|
Mode for likelihood computation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
BNT variants — Cls likelihoods with B-mode Nulling Transform applied to shear blocks. Require a precomputed data['BNT_matrix']:
EuclidLikelihood_WL_BNT¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_WL_BNT ¶
Bases: BNTMixin, EuclidLikelihood_WL
EuclidLikelihood_WL_BNT computes the weak lensing (WL) likelihood in BNT basis for photometric surveys using Euclid data.
Inherits from: EuclidLikelihood_WL: Base class for weak lensing likelihoods. BNTMixin: Mixin providing BNT specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_GGL_BNT¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_GGL_BNT ¶
Bases: BNTMixin, EuclidLikelihood_GGL
EuclidLikelihood_GGL_BNT class for galaxy-galaxy lensing likelihood computation in the BNT basis.
Inherits from: EuclidLikelihood_GGL: Base class for galaxy-galaxy lensing likelihoods. BNTMixin: Mixin providing BNT specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_3x2pt_BNT¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_3x2pt_BNT ¶
Bases: BNTMixin, EuclidLikelihood_3x2pt
EuclidLikelihood__3x2pt_BNT weak lensing (WL), galaxy clustering (GCph), and galaxy-galaxy lensing (GGL) likelihoods for photometric cosmological analyses, supporting scale cuts and masking. with WL in the BNT basis.
Inherits from: EuclidLikelihood_3x2pt: Base class for 3x2pt likelihoods. BNTMixin: Mixin providing BNT specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
EuclidLikelihood_2x2pt_BNT¶
cloelike.EuclidLikelihood_photo_Cls.EuclidLikelihood_2x2pt_BNT ¶
Bases: BNTMixin, EuclidLikelihood_2x2pt
EuclidLikelihood__2x2pt_BNT weak lensing (WL) and galaxy-galaxy lensing (GGL) likelihoods for photometric cosmological analyses, supporting scale cuts and masking. with WL in the BNT basis.
Inherits from: EuclidLikelihood_2x2pt: Base class for 2x2pt likelihoods. BNTMixin: Mixin providing BNT specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_Cls.py
options: show_source: true
Two-Point Correlation Functions (2PCF)¶
Classes from cloelike.EuclidLikelihood_photo_2pcf, computing likelihoods in real space (ξ₊, ξ₋, w, γₜ).
Mixins — composable building blocks for 2PCF likelihoods:
WLMixin (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.WLMixin ¶
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true
GCphMixin (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.GCphMixin ¶
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true
GGLMixin (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.GGLMixin ¶
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | |
options: show_source: true
Concrete likelihoods:
EuclidLikelihood_WL (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.EuclidLikelihood_WL ¶
Bases: WLMixin, PhotoLikelihoodBase
EuclidLikelihood_WL computes the weak lensing (WL) likelihood for photometric surveys using Euclid data.
Inherits from: PhotoLikelihoodBase: Base class for photometric likelihoods. WLMixin: Mixin providing weak lensing specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true
EuclidLikelihood_GCph (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.EuclidLikelihood_GCph ¶
Bases: GCphMixin, PhotoLikelihoodBase
EuclidLikelihood_GCph computes the likelihood for galaxy clustering photometric (GCph) data using the Euclid survey specifications.
Inherits from: PhotoLikelihoodBase: Base class for photometric likelihoods. GCphMixin: Mixin providing GCph-specific functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true
EuclidLikelihood_GGL (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.EuclidLikelihood_GGL ¶
Bases: GGLMixin, PhotoLikelihoodBase
EuclidLikelihood_GGL class for galaxy-galaxy lensing likelihood computation.
This class combines the functionalities of PhotoLikelihoodBase and GGLMixin to compute the likelihood for galaxy-galaxy lensing (GGL) using photometric data. It initializes the necessary components and constructs a masking vector based on scale cuts for each GGL key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data required for likelihood computation, including observed ells and other relevant quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance representing the cosmological background model. |
required |
LinPerturbations
|
object
|
Instance representing linear perturbations. |
required |
NonLinPerturbations
|
object
|
Instance representing non-linear perturbations. |
required |
mode
|
str
|
Mode of operation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true
EuclidLikelihood_3x2pt (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.EuclidLikelihood_3x2pt ¶
Bases: GCphMixin, GGLMixin, WLMixin, PhotoLikelihoodBase
EuclidLikelihood_3x2pt combines weak lensing (WL), galaxy clustering (GCph), and galaxy-galaxy lensing (GGL) likelihoods for photometric cosmological analyses, supporting scale cuts and masking.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Dictionary containing observational data vectors and related metadata. |
required |
settings
|
dict
|
Configuration settings for the likelihood calculation. |
required |
Background
|
object
|
Instance providing background cosmology calculations. |
required |
LinPerturbations
|
object
|
Instance for linear perturbation theory calculations. |
required |
NonLinPerturbations
|
object
|
Instance for non-linear perturbation theory calculations. |
required |
mode
|
str
|
Mode for likelihood calculation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true
EuclidLikelihood_2x2pt (2PCF)¶
cloelike.EuclidLikelihood_photo_2pcf.EuclidLikelihood_2x2pt ¶
Bases: GCphMixin, GGLMixin, PhotoLikelihoodBase
Likelihood class for Euclid 2x2pt photometric clustering and galaxy-galaxy lensing analysis.
This class combines galaxy clustering (GCph) and galaxy-galaxy lensing (GGL) likelihoods, providing methods to compute the full data and theory vectors for both probes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Input data dictionary containing observed power spectra and related quantities. |
required |
settings
|
dict
|
Configuration settings for the likelihood analysis. |
required |
Background
|
object
|
Cosmological background model instance. |
required |
LinPerturbations
|
object
|
Linear perturbations model instance. |
required |
NonLinPerturbations
|
object
|
Non-linear perturbations model instance. |
required |
mode
|
str
|
Mode for likelihood computation, default is "coupled". |
required |
Source code in cloelike/EuclidLikelihood_photo_2pcf.py
options: show_source: true