flip.covariance.contraction
===========================

.. py:module:: flip.covariance.contraction


Attributes
----------

.. autoapisummary::

   flip.covariance.contraction.log


Classes
-------

.. autoapisummary::

   flip.covariance.contraction.Contraction


Functions
---------

.. autoapisummary::

   flip.covariance.contraction.compute_contraction_coordinates
   flip.covariance.contraction.contract_covariance


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

.. py:data:: log

.. py:class:: Contraction(model_name=None, model_kind=None, contraction_dict=None, coordinates_dict=None, basis_definition=None, redshift_dict=None, variant=None)

   .. py:attribute:: model_name
      :value: None



   .. py:attribute:: model_kind
      :value: None



   .. py:attribute:: contraction_dict
      :value: None



   .. py:attribute:: coordinates_dict
      :value: None



   .. py:attribute:: basis_definition
      :value: None



   .. py:attribute:: redshift_dict
      :value: None



   .. py:attribute:: variant
      :value: None



   .. py:method:: init_from_flip(model_name, model_kind, power_spectrum_dict, coord_1, coord_2, coord_1_reference, coord_2_reference, coordinate_type='rprt', additional_parameters_values=None, basis_definition='bisector', redshift=None, variant=None, **kwargs)
      :classmethod:



   .. py:property:: type

      The type function is used to determine the type of covariance model that will be computed.
      The options are:
          - velocity: The covariance model is computed for velocity only.
          - density: The covariance model is computed for density only.
          - density_velocity: The covariance model is computed for both velocity and density, without cross-term (i.e., the covariances between velocities and densities are zero). This option should be used when computing a full 3D tomography in which we want to compute a separate 1D tomography along each axis (x, y, z

      :param self: Represent the instance of the class

      :returns: The type of the model


   .. py:method:: compute_contraction_sum(parameter_values_dict)

      The compute_contraction_sum function computes the sum of all the contractions
          for a given model type and parameter values.

      :param self: Make the function a method of the class
      :param parameter_values_dict: Get the coefficients for each of the covariances
      :param : Get the coefficients of the model

      :returns: A dictionary of contraction_covariance_sum



.. py:function:: compute_contraction_coordinates(coord_1, coord_2, coord_1_reference, coord_2_reference, coordinate_type, basis_definition)

.. py:function:: contract_covariance(model_name, model_kind, power_spectrum_dict, coord_1, coord_2, coord_1_reference, coord_2_reference, coordinate_type='rprt', additional_parameters_values=None, basis_definition='bisector', redshift=None, number_worker=8, hankel=True)

