NcmPowspecCorr3d

NcmPowspecCorr3d — Class to compute filtered power spectrum

Stability Level

Stable, unless otherwise indicated

Functions

Properties

double lnr0 Read / Write
NcmPowspec * powerspectrum Read / Write / Construct Only
double reltol Read / Write / Construct
double reltol-z Read / Write / Construct
double zf Read / Write
double zi Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── NcmPowspecCorr3d

Includes

#include <numcosmo/math/ncm_powspec_corr3d.h>

Description

This class computes the 3d spatial correlation function $\xi(r, z)$ from the power spectrum using the FFTLog approach (see NcmFftlog and NcmFftlogSBesselJ), \begin{equation}\label{eq:variance} \xi(r, z) = \sigma^2(r, z) = \frac{1}{2\pi^2} \int_0^\infty k^2 \ P(k, z) j_0(kr) \ \mathrm{d}k, \end{equation} where $P(k, z)$ is the power spectrum at mode $k$ and redshift $z$ and $j_0(kr)$ is the order zero spherical bessel function.

Functions

ncm_powspec_corr3d_new ()

NcmPowspecCorr3d *
ncm_powspec_corr3d_new (NcmPowspec *ps);

Creates a new NcmPowspecCorr3d from the power spectrum ps .

Parameters

ps

a NcmPowspec

 

Returns

the newly created NcmPowspecCorr3d.

[transfer full]


ncm_powspec_corr3d_ref ()

NcmPowspecCorr3d *
ncm_powspec_corr3d_ref (NcmPowspecCorr3d *psc);

Increases the reference count of psc by one.

Parameters

psc

a NcmPowspecCorr3d

 

Returns

psc .

[transfer full]


ncm_powspec_corr3d_free ()

void
ncm_powspec_corr3d_free (NcmPowspecCorr3d *psc);

Decreases the reference count of psc by one.

Parameters

psc

a NcmPowspecCorr3d

 

ncm_powspec_corr3d_clear ()

void
ncm_powspec_corr3d_clear (NcmPowspecCorr3d **psc);

If psc is different from NULL, decreases the reference count of psc by one and sets fftlog to NULL.

Parameters

psc

a NcmPowspecCorr3d

 

ncm_powspec_corr3d_set_reltol ()

void
ncm_powspec_corr3d_set_reltol (NcmPowspecCorr3d *psc,
                               const gdouble reltol);

Sets the relative tolerance for calibration in the distance direction. This function forces the recalibration of the transform.

Parameters

psc

a NcmPowspecCorr3d

 

reltol

the relative tolerance for calibration

 

ncm_powspec_corr3d_set_reltol_z ()

void
ncm_powspec_corr3d_set_reltol_z (NcmPowspecCorr3d *psc,
                                 const gdouble reltol_z);

Sets the relative tolerance for calibration in the redshift direction. This function forces the recalibration of the transform.

Parameters

psc

a NcmPowspecCorr3d

 

reltol_z

the relative tolerance for calibration in the redshift direction

 

ncm_powspec_corr3d_get_reltol ()

gdouble
ncm_powspec_corr3d_get_reltol (NcmPowspecCorr3d *psc);

Gets the relative tolerance for calibration in the distance direction.

Parameters

psc

a NcmPowspecCorr3d

 

Returns

the relative tolerance for calibration in the distance direction.


ncm_powspec_corr3d_get_reltol_z ()

gdouble
ncm_powspec_corr3d_get_reltol_z (NcmPowspecCorr3d *psc);

Gets the relative tolerance for calibration in the redshift direction.

Parameters

psc

a NcmPowspecCorr3d

 

Returns

the relative tolerance for calibration in the redshift direction.


ncm_powspec_corr3d_prepare ()

void
ncm_powspec_corr3d_prepare (NcmPowspecCorr3d *psc,
                            NcmModel *model);

Prepares the object applying the filter to the power spectrum.

Parameters

psc

a NcmPowspecCorr3d

 

model

a NcmModel

 

ncm_powspec_corr3d_prepare_if_needed ()

void
ncm_powspec_corr3d_prepare_if_needed (NcmPowspecCorr3d *psc,
                                      NcmModel *model);

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

Parameters

psc

a NcmPowspecCorr3d

 

model

a NcmModel

 

ncm_powspec_corr3d_set_lnr0 ()

void
ncm_powspec_corr3d_set_lnr0 (NcmPowspecCorr3d *psc,
                             gdouble lnr0);

Sets the center of the transform output $\ln(r_0)$ (see ncm_fftlog_set_lnr0()). This function forces the recalibration of the transform.

Parameters

psc

a NcmPowspecCorr3d

 

lnr0

the output center value $\ln(r_0)$

 

ncm_powspec_corr3d_set_best_lnr0 ()

void
ncm_powspec_corr3d_set_best_lnr0 (NcmPowspecCorr3d *psc);

Sets the value of $\ln(r_0)$ which gives the best results for the transformation based on the current value of $\ln(k_0)$, this is based in the rule of thumb $\mathrm{max}_{x^*}(j_l)$ where $ x^* \approx l + 1$ (see ncm_fftlog_sbessel_j_set_best_lnr0()).

Parameters

psc

a NcmPowspecCorr3d

 

ncm_powspec_corr3d_set_zi ()

void
ncm_powspec_corr3d_set_zi (NcmPowspecCorr3d *psc,
                           gdouble zi);

Sets the inital time $z_i$.

Parameters

psc

a NcmPowspecCorr3d

 

zi

the output initial time $z_i$

 

ncm_powspec_corr3d_set_zf ()

void
ncm_powspec_corr3d_set_zf (NcmPowspecCorr3d *psc,
                           gdouble zf);

Sets the final time $z_f$.

Parameters

psc

a NcmPowspecCorr3d

 

zf

the output final time $z_f$

 

ncm_powspec_corr3d_get_r_min ()

gdouble
ncm_powspec_corr3d_get_r_min (NcmPowspecCorr3d *psc);

This function returns $\xi(r, z)$'s minimum evaluated distance.

Parameters

psc

a NcmPowspecCorr3d

 

Returns

the minimum distance $r_{\mathrm{min}}$.


ncm_powspec_corr3d_get_r_max ()

gdouble
ncm_powspec_corr3d_get_r_max (NcmPowspecCorr3d *psc);

This function returns $\xi(r, z)$'s maximum evaluated distance.

Parameters

psc

a NcmPowspecCorr3d

 

Returns

the maximum distance $r_{\mathrm{max}}$.


ncm_powspec_corr3d_eval_xi_lnr ()

gdouble
ncm_powspec_corr3d_eval_xi_lnr (NcmPowspecCorr3d *psc,
                                const gdouble z,
                                const gdouble lnr);

Evaluates the function $\xi(z, r)$ at lnr and z .

Parameters

psc

a NcmPowspecCorr3d

 

z

redshift

 

lnr

logarithm base e of $r$

 

Returns

$\xi(\ln r, z)$.


ncm_powspec_corr3d_eval_xi ()

gdouble
ncm_powspec_corr3d_eval_xi (NcmPowspecCorr3d *psc,
                            const gdouble z,
                            const gdouble r);

Evaluate the function $\xi(z, r)$ at r and z .

Parameters

psc

a NcmPowspecCorr3d

 

z

redshift $z$

 

r

distance $r$

 

Returns

$\xi(r, z)$.

Types and Values

NCM_TYPE_POWSPEC_CORR3D

#define NCM_TYPE_POWSPEC_CORR3D (ncm_powspec_corr3d_get_type ())

NCM_POWSPEC_CORR3D_DEFAULT_SIZE

#define NCM_POWSPEC_CORR3D_DEFAULT_SIZE (200)

NcmPowspecCorr3d

typedef struct _NcmPowspecCorr3d NcmPowspecCorr3d;

Property Details

The “lnr0” property

  “lnr0”                     double

The Center value for $\ln(r)$.

Owner: NcmPowspecCorr3d

Flags: Read / Write

Default value: 0


The “powerspectrum” property

  “powerspectrum”            NcmPowspec *

The NcmPowspec object to be transformed into $\xi(r, z)$.

Owner: NcmPowspecCorr3d

Flags: Read / Write / Construct Only


The “reltol” property

  “reltol”                   double

The relative tolerance for calibration in the distance direction.

Owner: NcmPowspecCorr3d

Flags: Read / Write / Construct

Allowed values: [2.22045e-16,1]

Default value: 0.001


The “reltol-z” property

  “reltol-z”                 double

The relative tolerance for calibration in the redshift direction.

Owner: NcmPowspecCorr3d

Flags: Read / Write / Construct

Allowed values: [2.22045e-16,1]

Default value: 1e-06


The “zf” property

  “zf”                       double

The output final time $z_f$ of the correlation function, $\xi(r,z)$.

Owner: NcmPowspecCorr3d

Flags: Read / Write

Default value: 1


The “zi” property

  “zi”                       double

The output inital time $z_i$ of the correlation function, $\xi(r,z)$.

Owner: NcmPowspecCorr3d

Flags: Read / Write

Default value: 0