pspec_likelihood.likelihood.DataModelInterface.discretize_theory#

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

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

This outputs the value of the theory power spectrum over each cylindrical or spherical k-bin.

Parameters:
  • z – The redshift

  • theory_params – sequence of parameters passed to the theory function

Returns:

list of power spectrum values corresponding to the bins

Return type:

results