JaxSpectroObservable#

class cosmicjellyfish.LSSsurvey.jaxcosmo_spectro.JaxSpectroObservable(configuration, fiducial, backend_parameters=None, observables=None)[source]#

Bases: object

Differentiable galaxy-clustering \(\ln P(k,\mu)\) in CosmicJellyfish units.

Parameters:
  • configuration (object) – Analysis configuration exposing settings, specs and obs.

  • fiducial (mapping) – Merged fiducial dictionary (cosmology + spectroscopic bias + shot noise + nonlinear modelling parameters), i.e. SpectroDerivs.fiducial_allpars.

  • backend_parameters (mapping, optional) – Content of jaxcosmo/default.yaml. Defaults to the one carried by configuration.

  • observables (sequence of str, optional) – Probes this observable computes. Defaults to configuration.obs; pass the requested subset when the configuration carries probes computed by another observable.

canonical_name(name)[source]#

Map a CosmicJellyfish parameter name to the name used inside the traced function.

Return type:

str

as_dict(array)[source]#

Convert a (nbins, nmu, nk) array into the CosmicJellyfish P(k, mu) dictionary.

Return type:

dict[str, ndarray]

lnp(overrides=None)[source]#

ln P_gg at the fiducial point (optionally with parameter overrides).

Return type:

dict[str, ndarray]

jacobian(names)[source]#

Exact derivatives d ln P / d theta for each name.

Return type:

dict[str, dict[str, ndarray]]