Functions
isiterable (obj) |
Returns True if the given object is iterable. |
vectorize_if_needed (func, *x) |
Helper function to vectorize functions on array inputs |
Classes
ZeldovichJ0 (k) |
An integral over \(j_0\) needed to compute the Zeldovich power. |
ZeldovichJ1 (k) |
An integral over \(j_1\) needed to compute the Zeldovich power. |
ZeldovichPower (cosmo, redshift[, transfer]) |
The matter power spectrum in the Zel’dovich approximation. |
ZeldovichPowerIntegral (r, n) |
The integral needed to evaluate the density auto spectrum in the Zel’dovich approximation. |
nbodykit.cosmology.power.zeldovich.
ZeldovichJ0
(k)[source]¶An integral over \(j_0\) needed to compute the Zeldovich power. The integral is given by:
Methods
__call__ (F[, extrap]) |
Evaluate the integral |
check (F) |
rough sanity checks on the input function |
nbodykit.cosmology.power.zeldovich.
ZeldovichJ1
(k)[source]¶An integral over \(j_1\) needed to compute the Zeldovich power. The integral is given by:
Methods
__call__ (F[, extrap]) |
Evaluate the integral |
check (F) |
rough sanity checks on the input function |
nbodykit.cosmology.power.zeldovich.
ZeldovichPower
(cosmo, redshift, transfer='CLASS')[source]¶The matter power spectrum in the Zel’dovich approximation.
Parameters: |
---|
cosmo
¶class:Cosmology, astropy.cosmology.FLRW – the object giving the cosmological parameters
sigma8
¶float – the z=0 amplitude of matter fluctuations
redshift
¶float – the redshift to compute the power at
Plin
¶class:LinearPower – the linear power spectrum class used to compute the Zel’dovich power
Attributes
attrs |
The meta-data dictionary |
redshift |
The redshift of the power spectrum |
sigma8 |
The amplitude of matter fluctuations at \(z=0\). |
Methods
__call__ (k) |
Return the Zel’dovich power in \(h^{-3} \mathrm{Mpc}^3 at :attr:`redshift\) and k , where k is in units of \(h \mathrm{Mpc}^{-1}\). |
__call__
(k)[source]¶Return the Zel’dovich power in \(h^{-3} \mathrm{Mpc}^3 at
:attr:`redshift\) and k
, where k
is in units of
\(h \mathrm{Mpc}^{-1}\).
Parameters: | k (float, array_like) – the wavenumbers to evaluate the power at |
---|
attrs
¶The meta-data dictionary
redshift
The redshift of the power spectrum
sigma8
The amplitude of matter fluctuations at \(z=0\).
nbodykit.cosmology.power.zeldovich.
ZeldovichPowerIntegral
(r, n)[source]¶The integral needed to evaluate the density auto spectrum in the Zel’dovich approximation.
This evaluates:
Methods
__call__ (F[, extrap]) |
Evaluate the integral |
check (F) |
rough sanity checks on the input function |