flip.power_spectra#

Init file of the flip.power_spectra package.

Submodules#

Functions#

compute_power_spectra(power_spectrum_engine, ...[, ...])

Compute the power spectrum.

Package Contents#

flip.power_spectra.compute_power_spectra(power_spectrum_engine, power_spectrum_settings, redshift, minimal_wavenumber, maximal_wavenumber, number_points, logspace=True, normalization_power_spectrum='no_normalization', power_spectrum_non_linear_model=None, power_spectrum_model='linearbel', save_path=None)[source]#

Compute the power spectrum.

Parameters:
  • power_spectrum_engine (str) – engine to use to compute the power spectrum, see _available_engines.

  • power_spectrum_settings (dic or cosmo) – configuration for the engine.

  • redshift (float) – the redshift at which compute the power spectrum.

  • minimal_wavenumber (float) – minimum k in h/Mpc.

  • maximal_wavenumber (float) – maximum k in h/Mpc.

  • number_points (int) – Sampling of the power spectrum.

  • logspace (bool, optional) – Sample the power spectrum in logspace or linspace. Defaults to True.

  • normalization_power_spectrum (str, optional) – which normalisation to use. Defaults to “no_normalization”. Available options are: “no_normalization”, “growth_rate” or “growth_amplitude”.

  • power_spectrum_non_linear_model (str, optional) – Non-linear model to compute. Defaults to None.

  • power_spectrum_model (str, optional) – Non-linear model to apply to the computed power spectrum, see _available_power_spectrum_model. Defaults to “linearbel”.

  • save_path (str, optional) – Path to save the computed power spectrum. Defaults to None.

Raises:
Returns:

_description_

Return type:

_type_