pspec_likelihood.likelihood.DataModelInterface.discretize_theory#

DataModelInterface.discretize_theory(z: float, theory_params: Sequence[float] | dict[str, float]) tuple[tp.PowerType, tp.PowerType][source]#

Compute the discretized power spectrum at the (k, z) of the window function.

This outputs an approximation of the integral of the theory power spectrum over each cylindrical k-bin. The way in which this is done is controlled by window_integration_rule.

Parameters
  • z – The redshift

  • theory_params – sequence of parameters passed to the theory function

Returns

  • results – list of power spectrum values corresponding to the bins

  • errors – Estimation of the error through binning, if a suitable method has been chosen, otherwise None.