NcmPowspecSphereProj

NcmPowspecSphereProj — Class to compute spherical projection of power spectra

Functions

Properties

guint ell-max Read / Write / Construct
guint ell-min Read / Write / Construct
double k-pivot Read / Write / Construct
NcmPowspec * powerspectrum Read / Write / Construct Only
double reltol Read / Write / Construct
double reltol-z Read / Write / Construct
double xi-f Read / Write / Construct
double xi-i Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── NcmPowspecSphereProj

Description

The NcmPowspecSphereProj class computes the spherical projection of power spectra.

Functions

ncm_powspec_sphere_proj_new ()

NcmPowspecSphereProj *
ncm_powspec_sphere_proj_new (NcmPowspec *ps,
                             guint ell_min,
                             guint ell_max);

Creates a new NcmPowspecSphereProj from the power spectrum ps .

Parameters

ps

a NcmPowspec

 

ell_min

minimum $\ell$

 

ell_max

maximum $\ell$

 

Returns

the newly created NcmPowspecSphereProj.

[transfer full]


ncm_powspec_sphere_proj_ref ()

NcmPowspecSphereProj *
ncm_powspec_sphere_proj_ref (NcmPowspecSphereProj *psp);

Increases the reference count of psp by one.

Parameters

Returns

psp .

[transfer full]


ncm_powspec_sphere_proj_free ()

void
ncm_powspec_sphere_proj_free (NcmPowspecSphereProj *psp);

Decreases the reference count of psp by one.

Parameters


ncm_powspec_sphere_proj_clear ()

void
ncm_powspec_sphere_proj_clear (NcmPowspecSphereProj **psp);

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

Parameters


ncm_powspec_sphere_proj_prepare ()

void
ncm_powspec_sphere_proj_prepare (NcmPowspecSphereProj *psp,
                                 NcmModel *model);

Prepares the object applying the filter to the power spectrum.

Parameters

psp

a NcmPowspecSphereProj

 

model

a NcmModel

 

ncm_powspec_sphere_proj_prepare_if_needed ()

void
ncm_powspec_sphere_proj_prepare_if_needed
                               (NcmPowspecSphereProj *psp,
                                NcmModel *model);

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

Parameters

psp

a NcmPowspecSphereProj

 

model

a NcmModel

 

ncm_powspec_sphere_proj_set_xi_i ()

void
ncm_powspec_sphere_proj_set_xi_i (NcmPowspecSphereProj *psp,
                                  gdouble xi_i);

Sets the initial scale $\xi$ to xi_i .

Parameters

psp

a NcmPowspecSphereProj

 

xi_i

the output initial scale $\xi_i$

 

ncm_powspec_sphere_proj_set_xi_f ()

void
ncm_powspec_sphere_proj_set_xi_f (NcmPowspecSphereProj *psp,
                                  gdouble xi_f);

Sets the final scale $\xi$ to xi_f .

Parameters

psp

a NcmPowspecSphereProj

 

xi_f

the output final scale $\xi_f$

 

ncm_powspec_sphere_proj_set_k_pivot ()

void
ncm_powspec_sphere_proj_set_k_pivot (NcmPowspecSphereProj *psp,
                                     gdouble k_pivot);

Sets the pivot k to k_pivot .

Parameters

psp

a NcmPowspecSphereProj

 

k_pivot

the pivot k

 

ncm_powspec_sphere_proj_get_r_min ()

gdouble
ncm_powspec_sphere_proj_get_r_min (NcmPowspecSphereProj *psp);

Gets the minimum $r$.

Parameters

Returns

the minimum $r$.


ncm_powspec_sphere_proj_get_r_max ()

gdouble
ncm_powspec_sphere_proj_get_r_max (NcmPowspecSphereProj *psp);

Gets the maximum $r$.

Parameters

Returns

the maximum $r$.


ncm_powspec_sphere_proj_set_ell_min ()

void
ncm_powspec_sphere_proj_set_ell_min (NcmPowspecSphereProj *psp,
                                     guint ell_min);

Sets the minimum $\ell$ to ell_min .

Parameters

psp

a NcmPowspecSphereProj

 

ell_min

minimum $\ell$

 

ncm_powspec_sphere_proj_set_ell_max ()

void
ncm_powspec_sphere_proj_set_ell_max (NcmPowspecSphereProj *psp,
                                     guint ell_max);

Sets the maximum $\ell$ to ell_max .

Parameters

psp

a NcmPowspecSphereProj

 

ell_max

maximum $\ell$

 

ncm_powspec_sphere_proj_get_ell_min ()

guint
ncm_powspec_sphere_proj_get_ell_min (NcmPowspecSphereProj *psp);

Parameters

Returns

the minimum $\ell$.


ncm_powspec_sphere_proj_get_ell_max ()

guint
ncm_powspec_sphere_proj_get_ell_max (NcmPowspecSphereProj *psp);

Parameters

Returns

the maximum $\ell$.


ncm_powspec_sphere_proj_eval_lnvar_lnr ()

gdouble
ncm_powspec_sphere_proj_eval_lnvar_lnr
                               (NcmPowspecSphereProj *psp,
                                const gdouble z,
                                const gdouble lnr);

ncm_powspec_sphere_proj_get_w ()

gdouble
ncm_powspec_sphere_proj_get_w (NcmPowspecSphereProj *psp,
                               const guint w_i);

Parameters

psp

a NcmPowspecSphereProj

 

w_i

w index

 

Returns

the value of the w_i -th $w$.


ncm_powspec_sphere_proj_get_ell ()

void
ncm_powspec_sphere_proj_get_ell (NcmPowspecSphereProj *psp,
                                 const guint w_i,
                                 const gint ell,
                                 GArray **lnxi,
                                 GArray **Cell);

Returns the results for $\ell$.

Parameters

psp

a NcmPowspecSphereProj

 

w_i

w index

 

ell

the value of $\ell$

 

lnxi

array with the $\xi$ values.

[out][transfer full][array][element-type gdouble]

Cell

array with the $\xi$ values.

[out][transfer full][array][element-type gdouble]

ncm_powspec_sphere_proj_peek_ell_spline ()

NcmSpline *
ncm_powspec_sphere_proj_peek_ell_spline
                               (NcmPowspecSphereProj *psp,
                                const guint w_i,
                                const gint ell);

Parameters

psp

a NcmPowspecSphereProj

 

w_i

w index

 

ell

the value of $\ell$

 

Returns

the resulting spline for $\ell$.

[transfer none]


ncm_powspec_sphere_proj_eval_Cell_xi1_xi2 ()

gdouble
ncm_powspec_sphere_proj_eval_Cell_xi1_xi2
                               (NcmPowspecSphereProj *psp,
                                NcmModel *model,
                                const gint ell,
                                const gdouble z1,
                                const gdouble z2,
                                const gdouble xi1,
                                const gdouble xi2);

Parameters

psp

a NcmPowspecSphereProj

 

model

a NcmModel

 

ell

the value of $\ell$

 

z1

the value of $z_1$

 

z2

the value of $z_2$

 

xi1

the value of $\xi_1$

 

xi2

the value of $\xi_2$

 

Returns

the value of $C_\ell(\xi_1, \xi_2)$.

Types and Values

NCM_TYPE_POWSPEC_SPHERE_PROJ

#define NCM_TYPE_POWSPEC_SPHERE_PROJ (ncm_powspec_sphere_proj_get_type ())

NCM_POWSPEC_SPHERE_PROJ_DEFAULT_SIZE

#define NCM_POWSPEC_SPHERE_PROJ_DEFAULT_SIZE (200)

NcmPowspecSphereProj

typedef struct _NcmPowspecSphereProj NcmPowspecSphereProj;

Property Details

The “ell-max” property

  “ell-max”                  guint

Maximum ell.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Allowed values: >= 1

Default value: 1


The “ell-min” property

  “ell-min”                  guint

Minimum ell.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Default value: 0


The “k-pivot” property

  “k-pivot”                  double

Pivot k for growth computation.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 1


The “powerspectrum” property

  “powerspectrum”            NcmPowspec *

NcmPowspec object.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct Only


The “reltol” property

  “reltol”                   double

Relative tolerance for calibration.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Allowed values: [2.22045e-16,1]

Default value: 1e-09


The “reltol-z” property

  “reltol-z”                 double

Relative tolerance for calibration in the redshift direction.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Allowed values: [2.22045e-16,1]

Default value: 1e-09


The “xi-f” property

  “xi-f”                     double

Output final scale.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 10000


The “xi-i” property

  “xi-i”                     double

Output initial scale.

Owner: NcmPowspecSphereProj

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 1