flip.power_spectra.models
=========================

.. py:module:: flip.power_spectra.models


Functions
---------

.. autoapisummary::

   flip.power_spectra.models.bel_coefficients
   flip.power_spectra.models.get_bel_model
   flip.power_spectra.models.get_nonlinearbel_model
   flip.power_spectra.models.get_linearbel_model
   flip.power_spectra.models.get_linear_model


Module Contents
---------------

.. py:function:: bel_coefficients(sigma_8)

   The bel_coefficients function takes in a value for sigma_8 and returns the values of the coefficients
   a_i, i = 1, 2, 3 and invkdelta as well as b. These are used to calculate the non-linear power spectrum using
   the fitting formula from Bel et al. (2007). The function is called by Class when calculating P(k)

   :param sigma_8: Calculate the coefficients of the bessel function

   :returns: The coefficients a_i, i = 1,


.. py:function:: get_bel_model(wavenumber, power_spectrum_linear, **kwargs)

   The get_bel_model function takes in the linear power spectrum, wavenumber, and sigma_8 value.
   It then calculates the nonlinear matter-matter power spectrum using a fitting function from Bel et al. (2014).
   The function also returns the nonlinear matter-matter cross correlation coefficient.

   :param wavenumber: Calculate the power spectrum
   :param power_spectrum_linear: Calculate the nonlinear power spectrum
   :param \*\*kwargs: Pass a variable number of keyword arguments to a function
   :param : Calculate the nonlinear power spectrum

   :returns: The nonlinear matter power spectrum and the nonlinear galaxy clustering power spectrum


.. py:function:: get_nonlinearbel_model(wavenumber, power_spectrum_linear, **kwargs)

   The get_nonlinearbel_model function returns the nonlinear power spectra for a given linear power spectrum.

   :param wavenumber: Get the wavenumber of the power spectrum
   :param power_spectrum_linear: Calculate the power_spectrum_mt and power_spectrum_tt
   :param \*\*kwargs: Pass a variable number of keyword arguments to a function
   :param : Get the nonlinear power spectrum

   :returns: The nonlinear power spectrum of matter, the cross power spectrum of matter and tracers and the auto-power spectrum of tracers


.. py:function:: get_linearbel_model(wavenumber, power_spectrum_linear, **kwargs)

   The get_linearbel_model function returns the linear BEL model for a given power spectrum.

   :param wavenumber: Calculate the wavenumber in h/mpc
   :param power_spectrum_linear: Calculate the power spectrum of the matter field
   :param \*\*kwargs: Pass a variable number of keyword arguments to the function
   :param : Set the value of the power spectrum

   :returns: The linear power spectrum and the


.. py:function:: get_linear_model(wavenumber, power_spectrum_linear, **kwargs)

