Class

NumCosmoMathPowspecFilter

Description [src]

final class NumCosmoMath.PowspecFilter : GObject.Object
{
  /* No available fields */
}

Class to compute filtered power spectrum.

This class computes the filtered power spectrum, $\sigma^2(k, r)$, and its derivatives with respect to $\ln r$ (#ncm_powspec_filter_eval_dnvar_dlnrn()) using the FFTLog approach (see NcmFftlog), \begin{equation}\label{eq:variance} \sigma^2(r, z) = \frac{1}{2\pi^2} \int_0^\infty k^2 \ P(k, z) \vert W(k,r) \vert^2 \ \mathrm{d}k, \end{equation} where $P(k, z)$ is the power spectrum at mode $k$ and redshift $z$ and $W(k, r)$ is the filter (or window function).

Ancestors

Constructors

ncm_powspec_filter_new

Creates a new NcmPowspecFilter from the power spectrum ps.

Functions

ncm_powspec_filter_clear

If psf is different from NULL, atomically decrements the reference count of psf by one. If the reference count drops to 0, all memory allocated by psf is released and psf is set to NULL.

Instance methods

ncm_powspec_filter_eval_dlnvar_dlnr

Evaluates the first derivative of the logarithm of the filtered variance with respect to $\ln r$ at lnr and z.

ncm_powspec_filter_eval_dlnvar_dr

Evaluates the first derivative of the logarithm of the filtered variance with respect to $r$ at lnr and z.

ncm_powspec_filter_eval_dnlnvar_dlnrn

Evaluates the derivatives of the logarithm of the filtered variance at lnr and z, namely: - $n = 0 \rightarrow \ln \left[ \sigma(r, z)^2 \right]$, - $n = 1 \rightarrow \frac{\mathrm{d}\ln \left( \sigma^2 \right)}{\mathrm{d} \ln r}$, - $n = 2 \rightarrow \frac{\mathrm{d}^2 \ln \left( \sigma^2 \right)}{\mathrm{d}(\ln r)^2}$, - $n = 3 \rightarrow \frac{\mathrm{d}^3 \ln \left( \sigma^2 \right)}{\mathrm{d}(\ln r)^3}$.

ncm_powspec_filter_eval_dnvar_dlnrn

Evaluates the derivatives of the filtered variance at lnr and z, namely: - $n = 0 \rightarrow \sigma(r, z)^2$, - $n = 1 \rightarrow \frac{\mathrm{d}\sigma^2}{\mathrm{d} \ln r}$, - $n = 2 \rightarrow \frac{\mathrm{d}^2\sigma^2}{\mathrm{d}(\ln r)^2}$, - $n = 3 \rightarrow \frac{\mathrm{d}^3\sigma^2}{\mathrm{d}(\ln r)^3}$.

ncm_powspec_filter_eval_dvar_dlnr

Evaluates the first derivative of the filtered variance with respect to $\ln r$ at lnr and z.

ncm_powspec_filter_eval_lnvar_lnr

Evaluates the logarithm base e of the filtered power spectrum at lnr and z.

ncm_powspec_filter_eval_sigma

Evaluates the square root of the filtered power spectrum at r and z.

ncm_powspec_filter_eval_sigma_lnr

Evaluate the square root of the filtered power spectrum at lnr and z.

ncm_powspec_filter_eval_var

Evaluate the filtered variance at $r$.

ncm_powspec_filter_eval_var_lnr

Evaluates the filtered power spectrum at lnr and z.

ncm_powspec_filter_free

Atomically decrements the reference count of psf by one. If the reference count drops to 0, all memory allocated by psf is released.

ncm_powspec_filter_get_filter_type

Gets the type of filter used.

ncm_powspec_filter_get_r_max

This function returns $\sigma^2(r, z)$’s maximum evaluated distance.

ncm_powspec_filter_get_r_min

This function returns $\sigma^2(r, z)$’s minimum evaluated distance.

ncm_powspec_filter_get_reltol

Gets the relative tolerance for calibration in the distance direction.

ncm_powspec_filter_get_reltol_z

Gets the relative tolerance for calibration in the redshift direction.

ncm_powspec_filter_peek_powspec

Gets the NcmPowspec object used to compute the filtered variance $\sigma^{2}(r,z)$.

ncm_powspec_filter_prepare

Prepares the object applying the filter to the power spectrum.

ncm_powspec_filter_prepare_if_needed

Prepares (if necessary) the object applying the filter to the power spectrum.

ncm_powspec_filter_ref

Increases the reference count of psf by one atomically.

ncm_powspec_filter_require_zf

Requires the final time of at least $z_f$.

ncm_powspec_filter_require_zi

Require the initial time of at least $z_i$.

ncm_powspec_filter_set_best_lnr0

Sets the value of $\ln(r_0)$ which gives the best results for the transformation based on the current value of $\ln(k_0)$.

ncm_powspec_filter_set_lnr0

Sets the center of the transform output $\ln(r_0)$ (see ncm_fftlog_set_lnr0()).

ncm_powspec_filter_set_reltol

Sets the relative tolerance for calibration in the distance direction.

ncm_powspec_filter_set_reltol_z

Sets the relative tolerance for calibration in the redshift direction.

ncm_powspec_filter_set_type

Sets the type of the NcmPowspecFilter to be used.

ncm_powspec_filter_set_zf

Sets the final time $z_f$.

ncm_powspec_filter_set_zi

Sets the inital time $z_i$.

ncm_powspec_filter_volume_rm3

Calculates the volume of the filter over $r^3$.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.PowspecFilter:lnr0

The output center value for $\ln(r)$.

NumCosmoMath.PowspecFilter:max-k-knots

The maximum number of knots in the k direction.

NumCosmoMath.PowspecFilter:max-z-knots

The maximum number of knots in the redshift direction.

NumCosmoMath.PowspecFilter:powerspectrum

The NcmPowspec object to be used to compute the variance $\sigma^{2}(r,z)$.

NumCosmoMath.PowspecFilter:reltol

The relative tolerance for calibration in the distance direction.

NumCosmoMath.PowspecFilter:reltol-z

The relative tolerance for calibration in the redshift direction.

NumCosmoMath.PowspecFilter:type

The type of fliter used $W(k,r)$.

NumCosmoMath.PowspecFilter:zf

The output final time $z_f$ of the variance $\sigma^{2}(r,z)$.

NumCosmoMath.PowspecFilter:zi

The output initial time $z_i$ of the variance $\sigma^{2}(r,z)$.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoMathPowspecFilterClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.