Top |
NcPowspecMLTransferNcPowspecMLTransfer — Class for linear matter power spectrum from a transfer function. |
Provides a linear matter power spectrum as a function of mode $k$ and redshift $z$ using a transfer function $T(k)$ NcTransferFunc and the growth function $D(z)$ NcGrowthFunc, $$P(k, z) = P_{\text{prim}} (k) T(k)^2 D(z)^2,$$ where $P_{\text{prim}} (k)$ is the primordial power spectrum NcHIPrim.
NcPowspecMLTransfer *
nc_powspec_ml_transfer_new (NcTransferFunc *tf
);
Creates a new NcPowspecMLTransfer from the transfer
function tf
.
void nc_powspec_ml_transfer_set_tf (NcPowspecMLTransfer *ps_mlt
,NcTransferFunc *tf
);
Sets the NcTransferFunc to tf
.
void nc_powspec_ml_transfer_set_gf (NcPowspecMLTransfer *ps_mlt
,NcGrowthFunc *gf
);
Sets the NcGrowthFunc to gf
.
NcTransferFunc *
nc_powspec_ml_transfer_peek_tf (NcPowspecMLTransfer *ps_mlt
);
Peeks the NcTransferFunc inside ps_mlt
.
NcGrowthFunc *
nc_powspec_ml_transfer_peek_gf (NcPowspecMLTransfer *ps_mlt
);
Peeks the NcGrowthFunc inside ps_mlt
.
“growth”
property“growth” NcGrowthFunc *
The growth function $D(z)$ used to compute $P(k,z)$.
Owner: NcPowspecMLTransfer
Flags: Read / Write
“transfer”
property“transfer” NcTransferFunc *
The transfer function $T(k)$ used to compute $P(k,z)$.
Owner: NcPowspecMLTransfer
Flags: Read / Write / Construct