pynbody.analysis.hmf.BiasedPowerSpectrum#
- class pynbody.analysis.hmf.BiasedPowerSpectrum(bias, pspec)[source]#
Bases:
PowerSpectrum
A power spectrum object with linear bias
Methods
__call__
(k)Evaluate the power spectrum at the snapshot redshift
Calculate the current sigma8 value at z=0
set_sigma8
(sigma8)Update the normalisation for a given sigma8 value at z=0
- __init__(bias, pspec)[source]#
Set up a biased power spectrum.
- Parameters:
bias (float or function) – Either a constant linear bias factor, or a function of wavenumber that returns the bias at that wavenumber.
pspec (PowerSpectrum) – The power spectrum object to wrap with a bias
- get_sigma8()#
Calculate the current sigma8 value at z=0
- set_sigma8(sigma8)#
Update the normalisation for a given sigma8 value at z=0