powerbox.powerbox Module¶
A module defining two classes which can create arbitrary-dimensional fields with given power spectra. One such function produces Gaussian fields, and the other LogNormal fields.
In principle, these may be extended to other 1-point density distributions by subclassing PowerBox
and
over-writing the same methods as are over-written in LogNormalPowerBox
.
Classes¶
LogNormalPowerBox (*args, **kwargs) |
Calculate Log-Normal density fields with given power spectra. |
PowerBox (N, pk[, dim, boxlength, …]) |
Calculate real- and fourier-space Gaussian fields generated with a given power spectrum. |